Name | Lookup | Parameters | |
|---|---|---|---|
| buyout | 5200 | 2 | |
| update_buyout_limit | 5201 | 1 | |
| update_allowed_assets | 5202 | 1 |
Name | Lookup | Attributes | |
|---|---|---|---|
| Buyout | 5200 | ["AccountIdOf","BalanceOf","CurrencyIdOf","BalanceOf"] | |
| BuyoutLimitUpdated | 5201 | ["Option<BalanceOf>"] | |
| AllowedAssetsForBuyoutUpdated | 5202 | ["Vec<CurrencyIdOf>"] |
Name | Type | |
|---|---|---|
| BuyoutLimit | {"origin":"PlainType","plain_type":"U128","PlainTypeValue":6} | |
| Buyouts | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"Tuple:U128U32","keys_id":0,"value_id":178}} | |
| AllowedCurrencies | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["spacewalk_primitives:CurrencyId"],"value":"NULL","keys_id":121,"value_id":43}} |
Name | Type | Value | |
|---|---|---|---|
| TreasuryAccount | AccountId | 6d6f646c70792f74727372790000000000000000000000000000000000000000 | |
| BuyoutPeriod | U32 | 201c0000 | |
| SellFee | U32 | 50c30000 | |
| MinAmountToBuyout | U128 | 00e87648170000000000000000000000 | |
| MaxAllowedBuyoutCurrencies | U32 | 14000000 |
Name | Docs |
|---|---|
| StorageClearingFailure | Storage clearing of `AllowedCurrencies` failed |
| NativeTokenNotAllowed | Attempt to add native token to allowed assets |
| ExceedsNumberOfAllowedCurrencies | Exceeds number of allowed currencies for buyout |
| WrongAssetToBuyout | Attempt to exchange native token to native token |
| BuyoutLimitExceeded | Buyout limit exceeded for the current period |
| NoPrice | One of transacted currencies is missing price information |
| InsufficientTreasuryBalance | The treasury balance is too low for an operation |
| InsufficientAccountBalance | The account balance is too low for an operation |
| LessThanMinBuyoutAmount | Less than minimum amoount allowed for buyout |
| BuyoutWithTreasuryAccount | Attempt to use treasury account for buyout |
| ExchangeFailure | Exchange failed |
| DecimalsConversionError | Decimals conversion error |