Name | Lookup | Parameters | |
|---|---|---|---|
| sell | 6f00 | 5 | |
| buy | 6f01 | 5 | |
| set_route | 6f02 | 2 | |
| force_insert_route | 6f03 | 2 | |
| sell_all | 6f04 | 4 |
Name | Lookup | Attributes | |
|---|---|---|---|
| Executed | 6f00 | ["AssetId","AssetId","Balance","Balance","IncrementalIdType"] | |
| RouteUpdated | 6f01 | ["Vec<AssetId>"] |
Name | Type | |
|---|---|---|
| SkipEd | {"origin":"PlainType","plain_type":"pallet_route_executor:types:SkipEd","PlainTypeValue":661} | |
| Routes | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["basilisk_traits:router:AssetPair"],"value":"Vec<basilisk_traits:router:Trade>","keys_id":341,"value_id":662}} |
Name | Type | Value | |
|---|---|---|---|
| NativeAssetId | U32 | 00000000 | |
| OraclePeriod | basilisk_traits:oracle:OraclePeriod | 03 |
Name | Docs |
|---|---|
| TradingLimitReached | The trading limit has been reached |
| MaxTradesExceeded | The the max number of trades limit is reached |
| PoolNotSupported | The AMM pool is not supported for executing trades |
| InsufficientBalance | The user has not enough balance to execute the trade |
| RouteCalculationFailed | The calculation of route trade amounts failed in the underlying AMM |
| InvalidRoute | The route is invalid |
| RouteUpdateIsNotSuccessful | The route update was not successful |
| RouteHasNoOracle | Route contains assets that has no oracle data |
| InvalidRouteExecution | The route execution failed in the underlying AMM |
| NotAllowed | Trading same assets is not allowed. |