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 |
Name | Lookup | Attributes | |
|---|---|---|---|
| AddProvision | 5b00 | ||
| AddLiquidity | 5b01 | ||
| RemoveLiquidity | 5b02 | ||
| Swap | 5b03 | ||
| EnableTradingPair | 5b04 | ||
| ListProvisioning | 5b05 | ||
| DisableTradingPair | 5b06 | ||
| ProvisioningToEnabled | 5b07 |
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}} | |
| InitialShareExchangeRates | {"origin":"MapType","map_type":{"key":"TradingPair","hasher":"Twox64Concat","value":"(ExchangeRate, ExchangeRate)","isLinked":false}} |
Name | Type | Value | |
|---|---|---|---|
| GetExchangeFee | (u32, u32) | 0x03000000e8030000 | |
| TradingPathLimit | u32 | 0x03000000 | |
| PalletId | PalletId | 0x6163612f6465786d |
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 |
| 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 |
| UnqualifiedProvision | The Provision is unqualified to be converted to `Enabled` |
| StillProvisioning | Trading pair is still provisioning |