subscan
Runtime Modules / Dex
Spec Version:
Storage Functions
Name
Type
LiquidityPool{"origin":"MapType","map_type":{"key":"TradingPair","hasher":"Twox64Concat","value":"(Balance, Balance)","isLinked":false}}
TradingPairStatuses{"origin":"MapType","map_type":{"key":"TradingPair","hasher":"Twox64Concat","value":"TradingPairStatus<Balance, BlockNumber>","isLinked":false}}
ProvisioningPool{"origin":"DoubleMapType","double_map_type":{"key":"TradingPair","key2":"AccountId","hasher":"Twox64Concat","key2Hasher":"Twox64Concat","value":"(Balance, Balance)","isLinked":false}}
InitialShareExchangeRates{"origin":"MapType","map_type":{"key":"TradingPair","hasher":"Twox64Concat","value":"(ExchangeRate, ExchangeRate)","isLinked":false}}
Constants
Name
Type
Value
GetExchangeFee(u32, u32)0x03000000e8030000
TradingPathLimitu320x03000000
PalletIdPalletId0x6163612f6465786d
Error Types
Name
Docs
AlreadyEnabled Trading pair is already Enabled
MustBeEnabled Trading pair must be in Enabled status
MustBeProvisioning Trading pair must be in Provisioning status
MustBeDisabled Trading pair must be in Disabled status
NotAllowedList This trading pair is not allowed to be listed
InvalidContributionIncrement The increment of provision is invalid
InvalidLiquidityIncrement The increment of liquidity is invalid
InvalidCurrencyId Invalid currency id
InvalidTradingPathLength Invalid trading path length
InsufficientTargetAmount Target amount is less to min_target_amount
ExcessiveSupplyAmount Supply amount is more than max_supply_amount
InsufficientLiquidity Liquidity is not enough
ZeroSupplyAmount The supply amount is zero
ZeroTargetAmount The target amount is zero
UnacceptableShareIncrement The share increment is unacceptable
UnacceptableLiquidityWithdrawn The liquidity withdrawn is unacceptable
InvariantCheckFailed The swap dosen't meet the invariant check
UnqualifiedProvision The Provision is unqualified to be converted to `Enabled`
StillProvisioning Trading pair is still provisioning