referrerpolicy=no-referrer-when-downgrade

PsmInterface

Trait PsmInterface 

pub trait PsmInterface {
    type Balance;

    // Required method
    fn reserved_capacity() -> Self::Balance;
}
Expand description

Trait exposing the PSM pallet’s reserved capacity to other pallets.

Implemented by the PSM pallet, used by the Vaults pallet to account for PSM-reserved debt ceiling when calculating available vault capacity.

Required Associated Types§

type Balance

The balance type.

Required Methods§

fn reserved_capacity() -> Self::Balance

Get the amount of internal/minting stablecoin issuance capacity reserved by the PSM.

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.

Implementations on Foreign Types§

§

impl PsmInterface for ()

Implementors§

Source§

impl<T: Config> PsmInterface for Pallet<T>

Source§

type Balance = <<T as Config>::Fungibles as Inspect<<T as Config>::AccountId>>::Balance