pub fn remove_external_asset<T: Config>(
internal_asset: T::AssetId,
external_asset: T::AssetId,
)Expand description
Remove an external asset from a PSM instance.
Wipes the external’s per-instance state (status, decimals, fees, ceiling
weight, debt counter) and decrements PsmInfo::external_count. The
external must have zero outstanding debt on this instance.
§Dispatch Origin
Must match the PSM instance’s full_admin (the Full privilege level).
§Parameters
internal_asset: The PSM instance to remove the external from.external_asset: The external asset to remove.
§Errors
Error::InsufficientPrivilege: If the origin only hasEmergencyprivileges.Error::PsmNotFound: If no PSM is registered forinternal_asset.Error::AssetNotApproved: Ifexternal_assetis not approved on this PSM.Error::AssetHasDebt: If the external still has non-zero outstanding debt.
§Events
Event::ExternalAssetRemoved: Emitted on a successful removal.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::remove_external_asset.