referrerpolicy=no-referrer-when-downgrade

Trait pallet_staking::EraPayout

source ·
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”).

Object Safety§

This trait is not object safe.

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, T> EraPayout<Balance> for ConvertCurve<T>
where Balance: AtLeast32BitUnsigned + Clone + Copy, T: Get<&'static PiecewiseLinear<'static>>,