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.