pub trait EraPayout<Balance> {
    // Required method
    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§

source

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§

source§

impl<Balance: Default> EraPayout<Balance> for ()

source§

fn era_payout( _total_staked: Balance, _total_issuance: Balance, _era_duration_millis: u64 ) -> (Balance, Balance)

Implementors§

source§

impl<Balance: AtLeast32BitUnsigned + Clone, T: Get<&'static PiecewiseLinear<'static>>> EraPayout<Balance> for ConvertCurve<T>