pub trait OnTransfer<AccountId, CurrencyId, Balance> {
    // Required method
    fn on_transfer(
        currency_id: CurrencyId,
        from: &AccountId,
        to: &AccountId,
        amount: Balance
    ) -> DispatchResult;
}
Expand description

Hook to run before transferring from an account to another.

Required Methods§

source

fn on_transfer( currency_id: CurrencyId, from: &AccountId, to: &AccountId, amount: Balance ) -> DispatchResult

Implementations on Foreign Types§

source§

impl<AccountId, CurrencyId, Balance> OnTransfer<AccountId, CurrencyId, Balance> for ()

source§

fn on_transfer( _: CurrencyId, _: &AccountId, _: &AccountId, _: Balance ) -> DispatchResult

Implementors§