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
type Balance
The balance type.
Required Methods§
fn reserved_capacity() -> Self::Balance
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.