karura
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}}
Constants
Name
Type
Value
GetExchangeFee(u32, u32)0x03000000e8030000
TradingPathLimitu320x03000000
PalletIdPalletId0x6163612f6465786d
Error Types
Name
Docs
NotEnabledTradingPair Trading pair is in NotEnabled status
MustBeEnabled Trading pair must be in Enabled status
MustBeProvisioning Trading pair must be in Provisioning status
MustBeNotEnabled Trading pair must be in NotEnabled 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
ExceedPriceImpactLimit The swap will cause unacceptable price impact
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