referrerpolicy=no-referrer-when-downgrade

remove_external_asset

Function remove_external_asset 

Source
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

§Events

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::remove_external_asset.