Trait pallet_assets::FrozenBalance [−][src]
pub trait FrozenBalance<AssetId, AccountId, Balance> { fn frozen_balance(asset: AssetId, who: &AccountId) -> Option<Balance>; fn died(asset: AssetId, who: &AccountId); }
Expand description
Trait for allowing a minimum balance on the account to be specified, beyond the
minimum_balance
of the asset. This is additive - the minimum_balance
of the asset must be
met and then anything here in addition.
Required methods
fn frozen_balance(asset: AssetId, who: &AccountId) -> Option<Balance>
fn frozen_balance(asset: AssetId, who: &AccountId) -> Option<Balance>
Return the frozen balance. Under normal behaviour, this amount should always be withdrawable.
In reality, the balance of every account must be at least the sum of this (if Some
) and
the asset’s minimum_balance, since there may be complications to destroying an asset’s
account completely.
If None
is returned, then nothing special is enforced.
If any operation ever breaks this requirement (which will only happen through some sort of
privileged intervention), then melted
is called to do any cleanup.