referrerpolicy=no-referrer-when-downgrade
polkadot_sdk_frame::token::currency

Trait InspectLockableCurrency

pub trait InspectLockableCurrency<AccountId>: LockableCurrency<AccountId> {
    // Required method
    fn balance_locked(id: [u8; 8], who: &AccountId) -> Self::Balance;
}
Expand description

A inspect interface for a currency whose accounts can have liquidity restrictions.

Required Methods§

fn balance_locked(id: [u8; 8], who: &AccountId) -> Self::Balance

Amount of funds locked for who associated with id.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

impl<T: Config<I>, I: 'static> InspectLockableCurrency<<T as Config>::AccountId> for Pallet<T, I>