Name | Lookup | Parameters | |
|---|---|---|---|
| swap_with_exact_supply | 5b00 | 3 | |
| swap_with_exact_target | 5b01 | 3 | |
| add_liquidity | 5b02 | 6 | |
| remove_liquidity | 5b03 | 6 | |
| list_trading_pair | 5b04 | 7 | |
| enable_trading_pair | 5b05 | 2 | |
| disable_trading_pair | 5b06 | 2 |
Name | Lookup | Attributes | |
|---|---|---|---|
| AddProvision | 5b00 | ||
| AddLiquidity | 5b01 | ||
| RemoveLiquidity | 5b02 | ||
| Swap | 5b03 | ||
| EnableTradingPair | 5b04 | ||
| ListTradingPair | 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}} |
Name | Type | Value | |
|---|---|---|---|
| GetExchangeFee | (u32, u32) | 0x03000000e8030000 | |
| TradingPathLimit | u32 | 0x03000000 | |
| PalletId | PalletId | 0x6163612f6465786d |
Name | Docs |
|---|---|
| NotEnabledTradingPair | Trading pair is in NotEnabled status |
| MustBeEnabled | Trading pair must be in Enabled status |
| MustBeProvisioning | Trading pair must be in Provisioning status |
| MustBeNotEnabled | Trading pair must be in NotEnabled 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 |