Name | Lookup | Parameters | |
---|---|---|---|
swap_with_exact_supply | 5b00 | 3 | |
swap_with_exact_target | 5b01 | 3 | |
add_liquidity | 5b02 | 6 | |
add_provision | 5b03 | 4 | |
claim_dex_share | 5b04 | 3 | |
remove_liquidity | 5b05 | 6 | |
list_provisioning | 5b06 | 7 | |
update_provisioning_parameters | 5b07 | 7 | |
end_provisioning | 5b08 | 2 | |
enable_trading_pair | 5b09 | 2 | |
disable_trading_pair | 5b0a | 2 | |
refund_provision | 5b0b | 3 | |
abort_provisioning | 5b0c | 2 |
Name | Lookup | Attributes | |
---|---|---|---|
AddProvision | 5b00 | ["AccountId","CurrencyId","Balance","CurrencyId","Balance"] | |
AddLiquidity | 5b01 | ["AccountId","CurrencyId","Balance","CurrencyId","Balance","Balance"] | |
RemoveLiquidity | 5b02 | ["AccountId","CurrencyId","Balance","CurrencyId","Balance","Balance"] | |
Swap | 5b03 | ["AccountId","Vec<CurrencyId>","Vec<Balance>"] | |
EnableTradingPair | 5b04 | ["TradingPair"] | |
ListProvisioning | 5b05 | ["TradingPair"] | |
DisableTradingPair | 5b06 | ["TradingPair"] | |
ProvisioningToEnabled | 5b07 | ["TradingPair","Balance","Balance","Balance"] | |
RefundProvision | 5b08 | ["AccountId","CurrencyId","Balance","CurrencyId","Balance"] | |
ProvisioningAborted | 5b09 | ["TradingPair","Balance","Balance"] |
Name | Type | |
---|---|---|
LiquidityPool | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:TradingPair"],"value":"Tuple:U128U128","keys_id":144,"value_id":486}} | |
TradingPairStatuses | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:TradingPair"],"value":"module_dex:TradingPairStatus","keys_id":144,"value_id":502}} | |
ProvisioningPool | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["acala_primitives:TradingPair","AccountId"],"value":"Tuple:U128U128","keys_id":504,"value_id":486}} | |
InitialShareExchangeRates | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:TradingPair"],"value":"Tuple:U128U128","keys_id":144,"value_id":505}} |
Name | Type | Value | |
---|---|---|---|
GetExchangeFee | Tuple:U32U32 | 03000000e8030000 | |
TradingPathLimit | U32 | 04000000 | |
PalletId | [U8; 8] | 6163612f6465786d | |
ExtendedProvisioningBlocks | U32 | 40380000 |
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 |
AssetUnregistered | The Asset unregistered. |
InvalidTradingPath | The trading path is invalid |
NotAllowedRefund | Not allowed to refund provision |