Trait loans::OnTransfer
pub trait OnTransfer<AccountId, CurrencyId, Balance> {
// Required method
fn on_transfer(
currency_id: CurrencyId,
from: &AccountId,
to: &AccountId,
amount: Balance
) -> Result<(), DispatchError>;
}
Expand description
Hook to run before transferring from an account to another.