basilisk
subscan
Runtime Modules / Router
Spec Version:
Call Functions
Name
Lookup
Parameters
sell6f005
buy6f015
set_route6f022
force_insert_route6f032
sell_all6f044
Events
Name
Lookup
Attributes
Executed6f00["AssetId","AssetId","Balance","Balance","IncrementalIdType"]
RouteUpdated6f01["Vec<AssetId>"]
Storage Functions
Name
Type
SkipEd{"origin":"PlainType","plain_type":"pallet_route_executor:types:SkipEd","PlainTypeValue":633}
Routes{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["hydradx_traits:router:AssetPair"],"value":"Vec<hydradx_traits:router:Trade>","keys_id":323,"value_id":634}}
Constants
Name
Type
Value
NativeAssetIdU3200000000
OraclePeriodhydradx_traits:oracle:OraclePeriod03
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.