pub trait RewardIssuance {
    type AccountId;
    type CurrencyId;
    type Balance;

    // Required method
    fn issue_reward(
        currency_id: Self::CurrencyId,
        to: &Self::AccountId,
        amount: Self::Balance
    ) -> DispatchResult;
}

Required Associated Types§

source

type AccountId

Type used to identify the beneficiary.

source

type CurrencyId

Type used to identify the currency

source

type Balance

Type used as balance for all currencies and reward.

Required Methods§

source

fn issue_reward( currency_id: Self::CurrencyId, to: &Self::AccountId, amount: Self::Balance ) -> DispatchResult

Issue the provided reward amount to a beneficiary account address.

Object Safety§

This trait is not object safe.

Implementors§