Introduce Payees and PayoutDestination with Split variant#14451
Introduce Payees and PayoutDestination with Split variant#14451
Payees and PayoutDestination with Split variant#14451Conversation
|
bot help |
|
bot bench $ pallet dev pallet_staking |
|
bot bench $ pallet dev pallet_staking |
|
bot clean |
|
bot bench $ pallet dev pallet_staking |
|
@rossbulat https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3066318 was started for your command Comment |
|
bot fmt |
|
@rossbulat https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3397765 was started for your command Comment |
|
@rossbulat Command |
|
bot rebase |
|
Rebased |
|
bot fmt |
|
@rossbulat https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3404653 was started for your command Comment |
|
@rossbulat Command |
|
bot rebase |
|
Rebased |
|
bot rebase |
|
Rebased |
|
bot rebase |
|
Rebased |
|
bot rebase |
|
Rebased |
Tracking issue: paritytech/polkadot-sdk#410
Polkadot companion: paritytech/polkadot#7425
This PR is part 1 of a lazy migration to update reward destinations, which removes
Controller, refactorsRewardDestinationinto a newPayoutDestinationenum, and adds an additionalSplitenum for the ability to compound a part of rewards and have the rest as free balance.PayoutDestinationwith new variants and introducePayeesstorage item to replacePayee.set_payeeremovesPayee(RewardDestination) and inserts toPayees(PayoutDestination)update_payeecall to lazily migrate fromPayeetoPayeesstorage item.Splitlogic onpayout_stakerswith getter that migratesPayeeto newPayeesstorage.update_payee.get_payout_destination, ensurePayeesis populated.