Name | Lookup | Parameters | |
|---|---|---|---|
| create_pool | 2100 | 8 | |
| update_pool_data | 2101 | 6 | |
| pause_pool | 2102 | 1 | |
| unpause_pool | 2103 | 1 | |
| add_liquidity | 2104 | 2 | |
| remove_liquidity | 2105 | 1 | |
| sell | 2106 | 4 | |
| buy | 2107 | 4 |
Name | Lookup | Attributes | |
|---|---|---|---|
| PoolCreated | 2100 | ||
| PoolUpdated | 2101 | ||
| LiquidityAdded | 2102 | ||
| LiquidityRemoved | 2103 | ||
| SellExecuted | 2104 | ||
| BuyExecuted | 2105 | ||
| Paused | 2106 | ||
| Unpaused | 2107 |
Name | Type | |
|---|---|---|
| PoolData | {"origin":"MapType","map_type":{"key":"PoolId","hasher":"Blake2_128Concat","value":"Pool<AccountId, BlockNumber>","isLinked":false}} |
Name | Type | Value | |
|---|---|---|---|
| NativeAssetId | AssetId | 0x00000000 |
Name | Docs |
|---|---|
| CannotCreatePoolWithSameAssets | Pool assets can not be the same |
| CannotCreatePoolWithZeroLiquidity | Initial liquidity should be non-zero |
| NotOwner | Account is not a pool owner |
| SaleStarted | Sale already started |
| SaleNotEnded | Sale is still in progress |
| SaleIsNotRunning | Sale is not running |
| CannotPauseEndedPool | Sale already ended |
| CannotUnpauseEndedPool | Sale already ended |
| CannotPausePausedPool | Sale is already paused |
| PoolIsNotPausable | Pool cannot be paused |
| PoolIsNotPaused | Pool is not paused |
| MaxSaleDurationExceeded | Sale duration is too long |
| CannotAddZeroLiquidity | Liquidity being added should not be zero |
| InsufficientAssetBalance | Asset balance too low |
| PoolNotFound | Pool does not exist |
| PoolAlreadyExists | Pool has been already created |
| InvalidAsset | Pool does not contain the asset |
| InvalidBlockNumber | Invalid block number |
| WeightCalculationError | Calculation error |
| ZeroWeight | Weight should be non-zero |
| ZeroAmount | Can not perform a trade with zero amount |
| MaxInRatioExceeded | Trade amount is too high |
| MaxOutRatioExceeded | Trade amount is too high |
| FeeAmountInvalid | Invalid fee amount |
| AssetBalanceLimitExceeded | Trading limit reached |
| Overflow | An unexpected integer overflow occurred |
| NothingToUpdate | Nothing to update |