subscan
Runtime Modules / Dex
Spec Version:
Events
Name
Lookup
Attributes
AddProvision5b00["AccountId","CurrencyId","Balance","CurrencyId","Balance"]
AddLiquidity5b01["AccountId","CurrencyId","Balance","CurrencyId","Balance","Balance"]
RemoveLiquidity5b02["AccountId","CurrencyId","Balance","CurrencyId","Balance","Balance"]
Swap5b03["AccountId","Vec<CurrencyId>","Vec<Balance>"]
EnableTradingPair5b04["TradingPair"]
ListProvisioning5b05["TradingPair"]
DisableTradingPair5b06["TradingPair"]
ProvisioningToEnabled5b07["TradingPair","Balance","Balance","Balance"]
Storage Functions
Name
Type
LiquidityPool{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:TradingPair"],"value":"Tuple:U128U128","keys_id":144,"value_id":485}}
TradingPairStatuses{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:TradingPair"],"value":"module_dex:TradingPairStatus","keys_id":144,"value_id":501}}
ProvisioningPool{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["acala_primitives:TradingPair","AccountId"],"value":"Tuple:U128U128","keys_id":503,"value_id":485}}
InitialShareExchangeRates{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:TradingPair"],"value":"Tuple:U128U128","keys_id":144,"value_id":504}}
Constants
Name
Type
Value
GetExchangeFeeTuple:U32U3203000000e8030000
TradingPathLimitU3204000000
PalletId[U8; 8]6163612f6465786d
Error Types
Name
Docs
AlreadyEnabledTrading pair is already Enabled
MustBeEnabledTrading pair must be in Enabled status
MustBeProvisioningTrading pair must be in Provisioning status
MustBeDisabledTrading pair must be in Disabled status
NotAllowedListThis trading pair is not allowed to be listed
InvalidContributionIncrementThe increment of provision is invalid
InvalidLiquidityIncrementThe increment of liquidity is invalid
InvalidCurrencyIdInvalid currency id
InvalidTradingPathLengthInvalid trading path length
InsufficientTargetAmountTarget amount is less to min_target_amount
ExcessiveSupplyAmountSupply amount is more than max_supply_amount
InsufficientLiquidityLiquidity is not enough
ZeroSupplyAmountThe supply amount is zero
ZeroTargetAmountThe target amount is zero
UnacceptableShareIncrementThe share increment is unacceptable
UnacceptableLiquidityWithdrawnThe liquidity withdrawn is unacceptable
InvariantCheckFailedThe swap dosen't meet the invariant check
UnqualifiedProvisionThe Provision is unqualified to be converted to `Enabled`
StillProvisioningTrading pair is still provisioning
AssetUnregisteredThe Asset unregistered.
InvalidTradingPathThe trading path is invalid