Trait pallet_staking::EraPayout
source · pub trait EraPayout<Balance> {
fn era_payout(
total_staked: Balance,
total_issuance: Balance,
era_duration_millis: u64
) -> (Balance, Balance);
}
Expand description
Handler for determining how much of a balance should be paid out on the current era.
Required Methods§
sourcefn era_payout(
total_staked: Balance,
total_issuance: Balance,
era_duration_millis: u64
) -> (Balance, Balance)
fn era_payout(
total_staked: Balance,
total_issuance: Balance,
era_duration_millis: u64
) -> (Balance, Balance)
Determine the payout for this era.
Returns the amount to be paid to stakers in this era, as well as whatever else should be paid out (“the rest”).