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§

The reward balance type

The reward pool ID type

Required Methods§

Payout the reward to who

Implementors§