Name | Lookup | Parameters | |
---|---|---|---|
set_currency | 6a00 | 1 | |
add_currency | 6a01 | 2 | |
remove_currency | 6a02 | 1 |
Name | Lookup | Attributes | |
---|---|---|---|
CurrencySet | 6a00 | ["AccountId","AssetIdOf"] | |
CurrencyAdded | 6a01 | ["AssetIdOf"] | |
CurrencyRemoved | 6a02 | ["AssetIdOf"] | |
FeeWithdrawn | 6a03 | ["AccountId","AssetIdOf","BalanceOf","BalanceOf","AccountId"] |
Name | Type | |
---|---|---|
AccountCurrencyMap | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"U32","keys_id":0,"value_id":4}} | |
AcceptedCurrencies | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U32"],"value":"U128","keys_id":4,"value_id":156}} | |
AcceptedCurrencyPrice | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U32"],"value":"U128","keys_id":4,"value_id":156}} |
Name | Type | Value | |
---|---|---|---|
NativeAssetId | U32 | 00000000 |
Name | Docs |
---|---|
UnsupportedCurrency | Selected currency is not supported. |
ZeroBalance | Account balance should be non-zero. |
AlreadyAccepted | Currency is already in the list of accepted currencies. |
CoreAssetNotAllowed | It is not allowed to add Core Asset as accepted currency. Core asset is accepted by design. |
ZeroPrice | Fallback price cannot be zero. |
FallbackPriceNotFound | Fallback price was not found. |
Overflow | Math overflow |