-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Introduce Payees
and PayoutDestination
with Split
variant
#14451
base: master
Are you sure you want to change the base?
Conversation
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
, refactorsRewardDestination
into a newPayoutDestination
enum, and adds an additionalSplit
enum for the ability to compound a part of rewards and have the rest as free balance.PayoutDestination
with new variants and introducePayees
storage item to replacePayee
.set_payee
removesPayee
(RewardDestination
) and inserts toPayees
(PayoutDestination
)update_payee
call to lazily migrate fromPayee
toPayees
storage item.Split
logic onpayout_stakers
with getter that migratesPayee
to newPayees
storage.update_payee
.get_payout_destination
, ensurePayees
is populated.