pub fn remove_psm<T: Config>(internal_asset: T::AssetId)Expand description
Remove a PSM. Callable by the current full_admin. All approved externals
must be removed first and aggregate PSM debt must be zero.
If a creation deposit was taken, it is always returned to the account that originally paid it, regardless of any later admin reassignment.
§Dispatch Origin
Must match the PSM’s full_admin.
§Parameters
internal_asset: The PSM instance to remove.
§Errors
Error::PsmNotFound: No PSM is registered forinternal_asset.Error::PsmHasApprovedExternals: Approved externals still exist.Error::PsmHasDebt: Outstanding aggregate debt is non-zero.
§Events
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::remove_psm.