-
Notifications
You must be signed in to change notification settings - Fork 700
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
[NPoS] Some simple refactors to Delegate Staking #4981
Conversation
The CI pipeline was cancelled due to failure one of the required jobs. |
DelegateStake
refactors.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.
LGMT. However you say in the PR description:
fn update_payee is renamed to fn set_payee in the trait StakingInterface since there is also a call Staking::update_payee which does something completely different.
but Staking::update_payee
seems to do pretty much the same, or am I missing something here?
|
RawOrigin::Signed(stash.clone()).into(), | ||
RewardDestination::Account(reward_acc.clone()), | ||
) | ||
let ledger = Self::ledger(Stash(stash.clone()))?; |
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.
does this write back to storage?
## Changes - `fn update_payee` is renamed to `fn set_payee` in the trait `StakingInterface` since there is also a call `Staking::update_payee` which does something different, ie used for migrating deprecated `Controller` accounts. - `set_payee` does not re-dispatch, only mutates ledger. - Fix rustdocs for `NominationPools::join`. - Add an implementation note about why we cannot allow existing stakers to join/bond_extra into the pool.
Changes
fn update_payee
is renamed tofn set_payee
in the traitStakingInterface
since there is also a callStaking::update_payee
which does something different, ie used for migrating deprecatedController
accounts.set_payee
does not re-dispatch, only mutates ledger.NominationPools::join
.