hydration
subscan
Runtime Modules / Router
Spec Version:
Call Functions
Name
Lookup
Parameters
sell43005
buy43015
set_route43022
force_insert_route43032
sell_all43044
Events
Name
Lookup
Attributes
Executed4300["AssetId","AssetId","Balance","Balance","IncrementalIdType"]
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":227,"value_id":223}}
Constants
Name
Type
Value
NativeAssetIdU3200000000
OraclePeriodhydradx_traits:oracle:OraclePeriod02
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
RouteHasNoOracleRoute contains assets that has no oracle data
InvalidRouteExecutionThe route execution failed in the underlying AMM
NotAllowedTrading same assets is not allowed.