pub fn set_max_debt<T: Config>(
internal_asset: T::AssetId,
value: <<T as Config>::Fungibles as FungiblesInspect<<T as Config>::AccountId>>::Balance,
)Expand description
Set the PSM debt ceiling per internal asset, shared across all approved external assets.
§Dispatch Origin
Must match the PSM instance’s full_admin; only the Full privilege level may use
this call.
§Parameters
internal_asset: The PSM instance to configure.value: The new absolute debt ceiling, in internal-asset units.
§Errors
Error::InsufficientPrivilege: If the origin level cannot set the debt ceiling.Error::PsmNotFound: If no PSM is registered forinternal_asset.
§Events
Event::MaxDebtUpdated: Emitted with old and new values.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::set_max_debt.