Name | Lookup | Parameters | |
|---|---|---|---|
| create_pool | 4a00 | 2 | |
| add_liquidity | 4a01 | 7 | |
| remove_liquidity | 4a02 | 6 | |
| swap_exact_tokens_for_tokens | 4a03 | 5 | |
| swap_tokens_for_exact_tokens | 4a04 | 5 | |
| touch | 4a05 | 2 |
Name | Lookup | Attributes | |
|---|---|---|---|
| PoolCreated | 4a00 | ["AccountId","PoolId","AccountId","PoolAssetId"] | |
| LiquidityAdded | 4a01 | ["AccountId","AccountId","PoolId","Balance","Balance","PoolAssetId","Balance"] | |
| LiquidityRemoved | 4a02 | ["AccountId","AccountId","PoolId","Balance","Balance","PoolAssetId","Balance","Permill"] | |
| SwapExecuted | 4a03 | ["AccountId","AccountId","Balance","Balance","BalancePath"] | |
| SwapCreditExecuted | 4a04 | ["Balance","Balance","BalancePath"] | |
| Touched | 4a05 | ["PoolId","AccountId"] |
Name | Type | |
|---|---|---|
| Pools | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["Tuple:ep_multi_tokens:token:AssetIdep_multi_tokens:token:AssetId"],"value":"ep_multi_tokens:token:AssetId","keys_id":345,"value_id":962}} | |
| NextPoolAssetId | {"origin":"PlainType","plain_type":"ep_multi_tokens:token:AssetId","PlainTypeValue":346} |
Name | Type | Value | |
|---|---|---|---|
| LPFee | U32 | 03000000 | |
| PoolSetupFee | U128 | 000064a7b3b6e00d0000000000000000 | |
| PoolSetupFeeAsset | ep_multi_tokens:token:AssetId | 0000 | |
| LiquidityWithdrawalFee | U32 | 00000000 | |
| MintMinLiquidity | U128 | 64000000000000000000000000000000 | |
| MaxSwapPathLength | U32 | 03000000 | |
| PalletId | [U8; 8] | 65662f6173636f6e |
Name | Docs |
|---|---|
| InvalidAssetPair | Provided asset pair is not supported for pool. |
| PoolExists | Pool already exists. |
| WrongDesiredAmount | Desired amount can't be zero. |
| AmountOneLessThanMinimal | Provided amount should be greater than or equal to the existential deposit/asset'sminimal amount. |
| AmountTwoLessThanMinimal | Provided amount should be greater than or equal to the existential deposit/asset'sminimal amount. |
| ReserveLeftLessThanMinimal | Reserve needs to always be greater than or equal to the existential deposit/asset'sminimal amount. |
| AmountOutTooHigh | Desired amount can't be equal to the pool reserve. |
| PoolNotFound | The pool doesn't exist. |
| Overflow | An overflow happened. |
| AssetOneDepositDidNotMeetMinimum | The minimal amount requirement for the first token in the pair wasn't met. |
| AssetTwoDepositDidNotMeetMinimum | The minimal amount requirement for the second token in the pair wasn't met. |
| AssetOneWithdrawalDidNotMeetMinimum | The minimal amount requirement for the first token in the pair wasn't met. |
| AssetTwoWithdrawalDidNotMeetMinimum | The minimal amount requirement for the second token in the pair wasn't met. |
| OptimalAmountLessThanDesired | Optimal calculated amount is less than desired. |
| InsufficientLiquidityMinted | Insufficient liquidity minted. |
| ZeroLiquidity | Requested liquidity can't be zero. |
| ZeroAmount | Amount can't be zero. |
| ProvidedMinimumNotSufficientForSwap | Calculated amount out is less than provided minimum amount. |
| ProvidedMaximumNotSufficientForSwap | Provided maximum amount is not sufficient for swap. |
| InvalidPath | The provided path must consists of 2 assets at least. |
| NonUniquePath | The provided path must consists of unique assets. |
| IncorrectPoolAssetId | It was not possible to get or increment the Id of the pool. |
| BelowMinimum | The destination account cannot exist with the swapped funds. |