pub fn rewards(imbalance: NegativeImbalanceOf<T>) {
			let operators_part = T::OperatorRewardPercentage::get() * imbalance.peek();
			let stakers_part = imbalance.peek().saturating_sub(operators_part);

			BlockRewardAccumulator::<T>::mutate(|accumulated_reward| {
				accumulated_reward.operators =
					accumulated_reward.operators.saturating_add(operators_part);
				accumulated_reward.stakers =
					accumulated_reward.stakers.saturating_add(stakers_part);
			});

			T::Currency::resolve_creating(&Self::account_id(), imbalance);
		}
/// Adds rewards to the reward pool.
Adds rewards to the reward pool.
Adds rewards to the reward pool .
pub fn rewards(imbalance: NegativeImbalanceOf<T>) {
			let operators_part = T::OperatorRewardPercentage::get() * imbalance.peek();
			let stakers_part = imbalance.peek().saturating_sub(operators_part);
			BlockRewardAccumulator::<T>::mutate(|accumulated_reward| {
				accumulated_reward.operators =
					accumulated_reward.operators.saturating_add(operators_part);
				accumulated_reward.stakers =
					accumulated_reward.stakers.saturating_add(stakers_part);
			});
			T::Currency::resolve_creating(&Self::account_id(), imbalance);
		}
pub fn rewards ( imbalance : NegativeImbalanceOf < T > ) { let operators_part = T :: OperatorRewardPercentage :: get ( ) * imbalance . peek ( ) ; let stakers_part = imbalance . peek ( ) . saturating_sub ( operators_part ) ; BlockRewardAccumulator :: < T > :: mutate ( | accumulated_reward | { accumulated_reward . operators = accumulated_reward . operators . saturating_add ( operators_part ) ; accumulated_reward . stakers = accumulated_reward . stakers . saturating_add ( stakers_part ) ; } ) ; T :: Currency :: resolve_creating ( & Self :: account_id ( ) , imbalance ) ; }
Adds rewards to the reward pool.
Adds rewards to the reward pool .
imbalance
NegativeImbalanceOf<T>