pub fn remove_external_asset<T: Config>(asset_id: T::AssetId)Expand description
Remove an external stablecoin from the approved list.
§Dispatch Origin
Must be Config::ManagerOrigin.
§Details
The asset cannot be removed if it has non-zero PSM debt outstanding. This prevents orphaned debt that cannot be redeemed.
Upon removal, the associated configuration is also cleaned up:
MintingFeefor this assetRedemptionFeefor this assetAssetCeilingWeightfor this asset
§Parameters
asset_id: The external stablecoin to remove
§Errors
Error::AssetNotApproved: If the asset is not in the approved listError::AssetHasDebt: If the asset has non-zero PSM debt
§Events
Event::ExternalAssetRemoved: Emitted on 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.