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

Trait for inspecting a fungible asset which can be reserved.

Required Methods§

source

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

Amount of funds held in reserve by who.

source

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

Check to see if some amount of funds of who may be placed on hold.

Implementors§

source§

impl<F: InspectHold<AccountId>, A: Get<<F as Inspect<AccountId>>::AssetId>, AccountId> InspectHold<AccountId> for ItemOf<F, A, AccountId>