pallet-staking: add RewardDestination::None for explictly not receiving rewards
@@ -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,
}
}
