-
Notifications
You must be signed in to change notification settings - Fork 683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nomination-pools
: add permissionless condition to chill
#3453
nomination-pools
: add permissionless condition to chill
#3453
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR and it is looking pretty good.
Great that you added the integration test (test-staking) as well. I would advise though to instead add a separate integration test and simulate also what happens after the pool is chilled. An open question that I have, should we put the pool in blocked state when depositor bond is below min nominator bond?
Wdyt @rossbulat?
nomination-pools
: Add permissionless condition to chill
nomination-pools
: Add permissionless condition to chill
nomination-pools
: add permissionless condition to chill
I think it's not necessary to put it into |
…am/polkadot-sdk into fix/nomination-pools-chill
I isolated the |
hey @Ank4n, |
Yeah we should not do it in the chill but just conceptually if we do not block it, another user could end up joining this pool and not receive any rewards. But this is a problem frontends can solve better. For the current issue, I believe this solution is good enough. |
If the pool has more than |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…am/polkadot-sdk into fix/nomination-pools-chill
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice extra tests. Thanks
@gpestana https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/5392171 was started for your command Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
/tip medium
/tip medium |
@dastansam Invalid network: "DOT". Please select one of: polkadot, kusama, rococo, westend. |
…=dev --target_dir=substrate --pallet=pallet_nomination_pools
@gpestana Command |
/tip medium |
@liamaharon You are not allowed to request a tip. Only members of paritytech/tip-bot-approvers are allowed. |
/tip medium |
@mordamax A referendum for a medium (80 DOT) tip was successfully submitted for @dastansam (16FqwPZ8GRC5U5D4Fu7W33nA55ZXzXGWHwmbnE1eT6pxuqcT on polkadot). https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/referenda |
bot bench substrate-pallet --pallet=pallet_nomination_pools |
@Ank4n https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/5460998 was started for your command Comment |
…=dev --target_dir=substrate --pallet=pallet_nomination_pools
@Ank4n Command |
11831df
…ch#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 paritytech#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 <>
Currently, pool member funds cannot be unbonded if the depositor's stake is less than
MinNominatorBond
. This usually happens afterT::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 haveMinNominatorBond
cc @Ank4n @kianenigma
closes #2350
Polkadot address: 16FqwPZ8GRC5U5D4Fu7W33nA55ZXzXGWHwmbnE1eT6pxuqcT