`nomination-pools`: add permissionless condition to `chill` (#3453)
Currently, pool member funds cannot be unbonded if the depositor's stake is less than `MinNominatorBond`. This usually happens after `T::MinNominatorBond` is increased. To fix this, the above mentioned condition is added as a case for permissionless dispatch of `chill`. After pool is chilled, pool members can unbond their funds since pool won't be nominating anymore. Consequently, same check is added to `nominate` call, i.e pool can not start nominating if it's depositor does not have `MinNominatorBond` cc @Ank4n @Kianenigma closes #2350 Polkadot address: 16FqwPZ8GRC5U5D4Fu7W33nA55ZXzXGWHwmbnE1eT6pxuqcT --------- Co-authored-by:Ankan <10196091+Ank4n@users.noreply.github.com> Co-authored-by:
Gonçalo Pestana <g6pestana@gmail.com> Co-authored-by: command-bot <>
parent
c16fcc47
Showing
- prdoc/pr_3453.prdoc 13 additions, 0 deletionsprdoc/pr_3453.prdoc
- substrate/frame/nomination-pools/src/lib.rs 37 additions, 2 deletionssubstrate/frame/nomination-pools/src/lib.rs
- substrate/frame/nomination-pools/src/tests.rs 42 additions, 0 deletionssubstrate/frame/nomination-pools/src/tests.rs
- substrate/frame/nomination-pools/src/weights.rs 145 additions, 123 deletionssubstrate/frame/nomination-pools/src/weights.rs
- substrate/frame/nomination-pools/test-staking/src/lib.rs 130 additions, 3 deletionssubstrate/frame/nomination-pools/test-staking/src/lib.rs
Please register or sign in to comment