mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 04:11:07 +00:00
pallet-staking: add RewardDestination::None for explictly not receiving rewards (#8168)
This commit is contained in:
@@ -443,6 +443,8 @@ pub enum RewardDestination<AccountId> {
|
||||
Controller,
|
||||
/// Pay into a specified account.
|
||||
Account(AccountId),
|
||||
/// Receive no reward.
|
||||
None,
|
||||
}
|
||||
|
||||
impl<AccountId> Default for RewardDestination<AccountId> {
|
||||
@@ -2499,7 +2501,8 @@ impl<T: Config> Module<T> {
|
||||
}),
|
||||
RewardDestination::Account(dest_account) => {
|
||||
Some(T::Currency::deposit_creating(&dest_account, amount))
|
||||
}
|
||||
},
|
||||
RewardDestination::None => None,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user