Name | Lookup | Parameters | |
|---|---|---|---|
| sell | 4300 | 5 | |
| buy | 4301 | 5 | |
| set_route | 4302 | 2 | |
| force_insert_route | 4303 | 2 | |
| sell_all | 4304 | 4 |
Name | Lookup | Attributes | |
|---|---|---|---|
| Executed | 4300 | ["AssetId","AssetId","Balance","Balance","IncrementalIdType"] | |
| RouteUpdated | 4301 | ["Vec<AssetId>"] |
Name | Type | |
|---|---|---|
| Routes | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["hydradx_traits:router:AssetPair"],"value":"Vec<hydradx_traits:router:Trade>","keys_id":227,"value_id":223}} |
Name | Type | Value | |
|---|---|---|---|
| NativeAssetId | U32 | 00000000 | |
| OraclePeriod | hydradx_traits:oracle:OraclePeriod | 02 |
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. |