Trait loans::OnDeposit

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

Hook to run before depositing into an account.

Required Methods§

fn on_deposit( currency_id: CurrencyId, who: &AccountId, amount: Balance ) -> Result<(), DispatchError>

Implementations on Foreign Types§

§

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

§

fn on_deposit( _: CurrencyId, _: &AccountId, _: Balance ) -> Result<(), DispatchError>

Implementors§

source§

impl<T: Config> OnDeposit<<T as Config>::AccountId, <T as Config>::CurrencyId, <T as Config>::Balance> for PostDeposit<T>

source§

impl<T: Config> OnDeposit<<T as Config>::AccountId, <T as Config>::CurrencyId, <T as Config>::Balance> for PreDeposit<T>