subscan
Runtime Modules / Router
Spec Version:
Call Functions
Name
Lookup
Parameters
sell43005
buy43015
set_route43022
force_insert_route43032
Events
Name
Lookup
Attributes
Executed4300["AssetId","AssetId","Balance","Balance"]
RouteUpdated4301["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":325,"value_id":146}}
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
InsufficientBalanceThe user has not enough balance to execute the trade
RouteCalculationFailedThe calculation of route trade amounts failed in the underlying AMM
InvalidRouteThe route is invalid
RouteUpdateIsNotSuccessfulThe route update was not successful
InsufficientAssetNotSupportedInsufficient asset is not supported for on chain routing
InvalidRouteExecutionThe route execution failed in the underlying AMM
NotAllowedTrading same assets is not allowed.