Trait pallet_staking::EraPayout [−][src]
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
fn 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”).
Implementations on Foreign Types
fn era_payout(
_total_staked: Balance,
_total_issuance: Balance,
_era_duration_millis: u64
) -> (Balance, Balance)
Implementors
impl<Balance: AtLeast32BitUnsigned + Clone, T: Get<&'static PiecewiseLinear<'static>>> EraPayout<Balance> for ConvertCurve<T>