subscan
Runtime Modules / Router
Spec Version:
Call Functions
Name
Lookup
Parameters
sell6f005
buy6f015
set_route6f022
Events
Name
Lookup
Attributes
RouteExecuted6f00["AssetId","AssetId","Balance","Balance"]
RouteUpdated6f01["Vec<AssetId>"]
Storage Functions
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":340,"value_id":543}}
Constants
Name
Type
Value
NativeAssetIdU3200000000
Error Types
Name
Docs
TradingLimitReachedThe trading limit has been reached
MaxTradesExceededThe the max number of trades limit is reached
PoolNotSupportedThe AMM pool is not supported for executing trades
RouteHasNoTradesRoute has not trades to be executed
InsufficientBalanceThe user has not enough balance to execute the trade
InvalidRouteExecutionThe route execution failed in the underlying AMM
RouteCalculationFailedThe calculation of route trade amounts failed in the underlying AMM
InvalidRouteThe route is invalid
RouteUpdateIsNotSuccessfulThe route update was not successful