pub trait GetInflation<T: Config> {
    // Required method
    fn get_inflation_args(
        &self,
        eras_per_year: u32,
        current_supply: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance,
    ) -> <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance;
}
Expand description

Getter trait for the inflation amount to be minted in each era.

Required Methods§

source

fn get_inflation_args( &self, eras_per_year: u32, current_supply: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance, ) -> <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance

Returns the inflation amount to be minted per era.

Implementors§

source§

impl<T: Config> GetInflation<T> for InflationMethod<<<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>
where u32: Into<<<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>,