pub trait StakingExt<AccountId> {
    fn on_session_end(
        session_index: SessionIndex,
        session_trade_values: Vec<(CurrencyId, Balance)>,
        fees_account_id: AccountId
    ) -> Result<(), DispatchError>; fn account_id() -> AccountId; fn account_stakes_size() -> u64; }

Required Methods§

Triggered when a session end in the Fee pallet

Get the staking account id where the funds are transfered

Get the size of AccountStakes, used to predict the weight of on_session_end

Implementors§