Name | Lookup | Parameters | |
|---|---|---|---|
| create_pool | 6800 | 11 | |
| update_pool_data | 6801 | 9 | |
| add_liquidity | 6802 | 2 | |
| remove_liquidity | 6803 | 1 | |
| sell | 6804 | 4 | |
| buy | 6805 | 4 |
Name | Lookup | Attributes | |
|---|---|---|---|
| PoolCreated | 6800 | ["PoolId","Pool<AccountId, BlockNumberFor>"] | |
| PoolUpdated | 6801 | ["PoolId","Pool<AccountId, BlockNumberFor>"] | |
| LiquidityAdded | 6802 | ["AccountId","AssetId","AssetId","BalanceOf","BalanceOf"] | |
| LiquidityRemoved | 6803 | ["AccountId","AssetId","AssetId","BalanceOf","BalanceOf"] | |
| SellExecuted | 6804 | ["AccountId","AssetId","AssetId","BalanceOf","BalanceOf","AssetId","BalanceOf"] | |
| BuyExecuted | 6805 | ["AccountId","AssetId","AssetId","BalanceOf","BalanceOf","AssetId","BalanceOf"] |
Name | Type | |
|---|---|---|
| PoolData | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"pallet_lbp:Pool","keys_id":0,"value_id":391}} | |
| FeeCollectorWithAsset | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["AccountId","U32"],"value":"Bool","keys_id":648,"value_id":8}} |
Name | Type | Value | |
|---|---|---|---|
| MinTradingLimit | U128 | e8030000000000000000000000000000 | |
| MinPoolLiquidity | U128 | e8030000000000000000000000000000 | |
| MaxInRatio | U128 | 03000000000000000000000000000000 | |
| MaxOutRatio | U128 | 03000000000000000000000000000000 | |
| repay_fee | Tuple:U32U32 | 020000000a000000 |
Name | Docs |
|---|---|
| CannotCreatePoolWithSameAssets | Pool assets can not be the same |
| NotOwner | Account is not a pool owner |
| SaleStarted | Sale already started |
| SaleNotEnded | Sale is still in progress |
| SaleIsNotRunning | Sale is not running |
| 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 |
| InvalidBlockRange | Invalid block range |
| WeightCalculationError | Calculation error |
| InvalidWeight | Weight set is out of range |
| 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 |
| TradingLimitReached | Trading limit reached |
| Overflow | An unexpected integer overflow occurred |
| NothingToUpdate | Nothing to update |
| InsufficientLiquidity | Liquidity has not reached the required minimum. |
| InsufficientTradingAmount | Amount is less than minimum trading limit. |
| FeeCollectorWithAssetAlreadyUsed | Not more than one fee collector per asset id |