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":146,"value_id":504}} | |
| TradingPairStatuses | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:TradingPair"],"value":"module_dex:TradingPairStatus","keys_id":146,"value_id":519}} | |
| ProvisioningPool | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["acala_primitives:TradingPair","AccountId"],"value":"Tuple:U128U128","keys_id":521,"value_id":504}} | |
| InitialShareExchangeRates | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:TradingPair"],"value":"Tuple:U128U128","keys_id":146,"value_id":522}} |
Name | Type | Value | |
|---|---|---|---|
| GetExchangeFee | Tuple:U32U32 | 03000000e8030000 | |
| TradingPathLimit | U32 | 04000000 | |
| PalletId | [U8; 8] | 6163612f6465786d | |
| ExtendedProvisioningBlocks | U32 | 40380000 |
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 |