Name | Lookup | Parameters | |
|---|---|---|---|
| sell | 4300 | 5 | |
| buy | 4301 | 5 | |
| set_route | 4302 | 2 | |
| force_insert_route | 4303 | 2 |
Name | Lookup | Attributes | |
|---|---|---|---|
| Executed | 4300 | ["AssetId","AssetId","Balance","Balance"] | |
| 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":325,"value_id":146}} |
Name | Type | Value | |
|---|---|---|---|
| NativeAssetId | U32 | 00000000 |
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 |
| InsufficientAssetNotSupported | Insufficient asset is not supported for on chain routing |
| InvalidRouteExecution | The route execution failed in the underlying AMM |
| NotAllowed | Trading same assets is not allowed. |