pub trait OnDeposit<AccountId, CurrencyId, Balance> {
    // Required method
    fn on_deposit(
        currency_id: CurrencyId,
        who: &AccountId,
        amount: Balance
    ) -> DispatchResult;
}
Expand description

Hook to run before depositing into an account.

Required Methods§

source

fn on_deposit( currency_id: CurrencyId, who: &AccountId, amount: Balance ) -> DispatchResult

Implementations on Foreign Types§

source§

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

source§

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

Implementors§