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"]
RefundProvision5b08["AccountId","CurrencyId","Balance","CurrencyId","Balance"]
ProvisioningAborted5b09["TradingPair","Balance","Balance"]
Storage Functions
Name
Type
LiquidityPool{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:TradingPair"],"value":"Tuple:U128U128","keys_id":173,"value_id":551}}
TradingPairStatuses{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:TradingPair"],"value":"module_dex:TradingPairStatus","keys_id":173,"value_id":570}}
ProvisioningPool{"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["acala_primitives:TradingPair","AccountId"],"value":"Tuple:U128U128","keys_id":572,"value_id":551}}
InitialShareExchangeRates{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:TradingPair"],"value":"Tuple:U128U128","keys_id":173,"value_id":573}}
Constants
Name
Type
Value
GetExchangeFeeTuple:U32U3203000000e8030000
TradingPathLimitU3204000000
PalletId[U8; 8]6163612f6465786d
ExtendedProvisioningBlocksU3240380000
Error Types
Name
Docs
AlreadyEnabled
MustBeEnabled
MustBeProvisioning
MustBeDisabled
NotAllowedList
InvalidContributionIncrement
InvalidLiquidityIncrement
InvalidCurrencyId
InvalidTradingPathLength
InsufficientTargetAmount
ExcessiveSupplyAmount
InsufficientLiquidity
ZeroSupplyAmount
ZeroTargetAmount
UnacceptableShareIncrement
UnacceptableLiquidityWithdrawn
InvariantCheckFailed
UnqualifiedProvision
StillProvisioning
AssetUnregistered
InvalidTradingPath
NotAllowedRefund
CannotSwap