remove_asset

Function remove_asset 

Source
pub fn remove_asset(asset: CoreAsset) -> CoreAsset
Expand description

Remove the specified asset from the vault.

Panics:

  • The fungible asset is not found in the vault.
  • The amount of the fungible asset in the vault is less than the amount to be removed.
  • The non-fungible asset is not found in the vault.