You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
In the current design a delegator cannot unbond a sub portion of their stake; instead they must unbond all their stake at once. This was chosen for implementation simplicity. Instead we shoud allow a delagator to only unbond sub portion of their funds, thus giving users more flexibility. We could use a bounded btreeset to track the eras they are unbonding in and make sure to destroy the delegator when they withdraw unbonded and the btreeset is empty.
It will probably keep things simpler if the pool's creator still had to unbond all funds at once. This is ok because they can only unbond once the pool is in a destroying state and no other delegators remain.
We should still maintain the invariant that a delegator can only be a member of one pool at a time.
Should wait until #10694 is merged to start working on this.