Name | Lookup | Parameters | |
|---|---|---|---|
| create_pool | 3800 | 2 | |
| add_liquidity | 3801 | 7 | |
| remove_liquidity | 3802 | 6 | |
| swap_exact_tokens_for_tokens | 3803 | 5 | |
| swap_tokens_for_exact_tokens | 3804 | 5 |
Name | Lookup | Attributes | |
|---|---|---|---|
| PoolCreated | 3800 | ["AccountId","PoolIdOf","AccountId","PoolAssetId"] | |
| LiquidityAdded | 3801 | ["AccountId","AccountId","PoolIdOf","AssetBalance","AssetBalance","PoolAssetId","AssetBalance"] | |
| LiquidityRemoved | 3802 | ["AccountId","AccountId","PoolIdOf","AssetBalance","AssetBalance","PoolAssetId","AssetBalance","Permill"] | |
| SwapExecuted | 3803 | ["AccountId","AccountId","BoundedVec<MultiAssetId, MaxSwapPathLength>","AssetBalance","AssetBalance"] | |
| Transfer | 3804 | ["AccountId","AccountId","MultiAssetId","AssetBalance"] |
Name | Type | |
|---|---|---|
| Pools | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["Tuple:staging_xcm:v3:multilocation:MultiLocationstaging_xcm:v3:multilocation:MultiLocation"],"value":"U32","keys_id":127,"value_id":414}} | |
| NextPoolAssetId | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} |
Name | Type | Value | |
|---|---|---|---|
| LPFee | U32 | 03000000 | |
| PoolSetupFee | U128 | 00000000000000000000000000000000 | |
| LiquidityWithdrawalFee | U32 | 00000000 | |
| MintMinLiquidity | U128 | 64000000000000000000000000000000 | |
| MaxSwapPathLength | U32 | 04000000 | |
| PalletId | [U8; 8] | 70792f6173636f6e | |
| AllowMultiAssetPools | Bool | 00 |
Name | Docs |
|---|---|
| EqualAssets | Provided assets are equal. |
| UnsupportedAsset | Provided asset 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. |
| InsufficientLiquidity | Insufficient liquidity in the pool. |
| ProvidedMinimumNotSufficientForSwap | Calculated amount out is less than provided minimum amount. |
| ProvidedMaximumNotSufficientForSwap | Provided maximum amount is not sufficient for swap. |
| PoolMustContainNativeCurrency | Only pools with native on one side are valid. |
| InvalidPath | The provided path must consists of 2 assets at least. |
| PathError | It was not possible to calculate path data. |
| NonUniquePath | The provided path must consists of unique assets. |
| IncorrectPoolAssetId | It was not possible to get or increment the Id of the pool. |
| CorrespondenceError | Unable to find an element in an array/vec that should have one-to-one correspondencewith another. For example, an array of assets constituting a `path` should have acorresponding array of `amounts` along the path. |