pub trait InspectHold<AccountId>: Inspect<AccountId> {
    // Required methods
    fn balance_on_hold(asset: Self::AssetId, who: &AccountId) -> Self::Balance;
    fn can_hold(
        asset: Self::AssetId,
        who: &AccountId,
        amount: Self::Balance
    ) -> bool;
}
Expand description

Trait for inspecting a set of named fungible assets which can be placed on hold.

Required Methods§

source

fn balance_on_hold(asset: Self::AssetId, who: &AccountId) -> Self::Balance

Amount of funds held in hold.

source

fn can_hold( asset: Self::AssetId, who: &AccountId, amount: Self::Balance ) -> bool

Check to see if some amount of asset may be held on the account of who.

Implementors§