Trait orml_traits::rewards::RewardHandler
source · pub trait RewardHandler<AccountId, CurrencyId> {
type Balance: AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + Debug;
type PoolId: FullCodec;
fn payout(
who: &AccountId,
pool: &Self::PoolId,
currency_id: CurrencyId,
amount: Self::Balance
);
}
Expand description
Hooks to manage reward pool
Required Associated Types§
sourcetype Balance: AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + Debug
type Balance: AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + Debug
The reward balance type