fn reward_balance_snapshot(era: EraIndex, rewards: RewardInfo<BalanceOf<T>>) {
			// Get the reward and stake information for previous era
			let mut era_info = Self::general_era_info(era).unwrap_or_default();

			// Prepare info for the next era
			GeneralEraInfo::<T>::insert(
				era + 1,
				EraInfo {
					rewards: Default::default(),
					staked: era_info.staked.clone(),
					locked: era_info.locked.clone(),
				},
			);

			// Set reward for the previous era
			era_info.rewards = rewards;
			GeneralEraInfo::<T>::insert(era, era_info);
		}
/// The block rewards are accumulated on the pallet's account during an era.
/// This function takes a snapshot of the pallet's balance accrued during current era
/// and stores it for future distribution
///
/// This is called just at the beginning of an era.
The block rewards are accumulated on the pallet's account during an era.
This function takes a snapshot of the pallet's balance accrued during current era
and stores it for future distribution

This is called just at the beginning of an era.
The block rewards are accumulated on the pallet ' s account during an era . This function takes a snapshot of the pallet ' s balance accrued during current era and stores it for future distribution This is called just at the beginning of an era .
fn reward_balance_snapshot(era: EraIndex, rewards: RewardInfo<BalanceOf<T>>) {
			// Get the reward and stake information for previous era
			let mut era_info = Self::general_era_info(era).unwrap_or_default();
			// Prepare info for the next era
			GeneralEraInfo::<T>::insert(
				era + 1,
				EraInfo {
					rewards: Default::default(),
					staked: era_info.staked.clone(),
					locked: era_info.locked.clone(),
				},
			);
			// Set reward for the previous era
			era_info.rewards = rewards;
			GeneralEraInfo::<T>::insert(era, era_info);
		}
fn reward_balance_snapshot ( era : EraIndex , rewards : RewardInfo < BalanceOf < T > > ) { // Get the reward and stake information for previous era let mut era_info = Self :: general_era_info ( era ) . unwrap_or_default ( ) ; // Prepare info for the next era GeneralEraInfo :: < T > :: insert ( era + 1 , EraInfo { rewards : Default :: default ( ) , staked : era_info . staked . clone ( ) , locked : era_info . locked . clone ( ) , } , ) ; // Set reward for the previous era era_info . rewards = rewards ; GeneralEraInfo :: < T > :: insert ( era , era_info ) ; }
The block rewards are accumulated on the pallet's account during an era.
The block rewards are accumulated on the pallet ' s account during an era .
era
EraIndex
rewards
RewardInfo<BalanceOf<T>>