Trait cfg_traits::rewards::RewardIssuance
source · 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§
sourcetype CurrencyId
type CurrencyId
Type used to identify the currency
Required Methods§
sourcefn issue_reward(
currency_id: Self::CurrencyId,
to: &Self::AccountId,
amount: Self::Balance
) -> DispatchResult
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.