Trait orml_traits::rewards::RewardHandler [−][src]
Hooks to manage reward pool
Associated Types
type Share: AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + Debug
[src]
The share type of pool
type Balance: AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + Debug
[src]
The reward balance type
type PoolId: Copy + FullCodec
[src]
The reward pool ID type
type CurrencyId: FullCodec + Eq + PartialEq + Copy + MaybeSerializeDeserialize + Debug
[src]
The currency type
Required methods
fn accumulate_reward(
now: BlockNumber,
callback: impl FnMut(Self::PoolId, Self::Balance)
) -> Vec<(Self::CurrencyId, Self::Balance)>
[src]
now: BlockNumber,
callback: impl FnMut(Self::PoolId, Self::Balance)
) -> Vec<(Self::CurrencyId, Self::Balance)>
Accumulate rewards
fn payout(who: &AccountId, pool: Self::PoolId, amount: Self::Balance)
[src]
Payout the reward to who