Trait tidefi_primitives::pallet::StakingExt
source · 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§
sourcefn on_session_end(
session_index: SessionIndex,
session_trade_values: Vec<(CurrencyId, Balance)>,
fees_account_id: AccountId
) -> Result<(), DispatchError>
fn on_session_end(
session_index: SessionIndex,
session_trade_values: Vec<(CurrencyId, Balance)>,
fees_account_id: AccountId
) -> Result<(), DispatchError>
Triggered when a session end in the Fee pallet
sourcefn account_id() -> AccountId
fn account_id() -> AccountId
Get the staking account id where the funds are transfered
sourcefn account_stakes_size() -> u64
fn account_stakes_size() -> u64
Get the size of AccountStakes
, used to predict the weight of on_session_end