Name | Lookup | Parameters | |
|---|---|---|---|
| create_pool | 4600 | 4 | |
| update_pool_fee | 4601 | 2 | |
| update_amplification | 4602 | 4 | |
| add_liquidity | 4603 | 2 | |
| add_liquidity_shares | 4604 | 4 | |
| remove_liquidity_one_asset | 4605 | 4 | |
| withdraw_asset_amount | 4606 | 4 | |
| sell | 4607 | 5 | |
| buy | 4608 | 5 | |
| set_asset_tradable_state | 4609 | 3 | |
| remove_liquidity | 460a | 3 | |
| create_pool_with_pegs | 460b | 6 | |
| add_assets_liquidity | 460c | 3 | |
| update_asset_peg_source | 460d | 3 | |
| update_pool_max_peg_update | 460e | 2 |
Name | Lookup | Attributes | |
|---|---|---|---|
| PoolCreated | 4600 | ["AssetId","Vec<AssetId>","NonZeroU16","Permill","Option<PoolPegInfo<AssetId>>"] | |
| FeeUpdated | 4601 | ["AssetId","Permill"] | |
| LiquidityAdded | 4602 | ["AssetId","AccountId","Balance","Vec<AssetAmount<AssetId>>"] | |
| LiquidityRemoved | 4603 | ["AssetId","AccountId","Balance","Vec<AssetAmount<AssetId>>","Balance"] | |
| SellExecuted | 4604 | ["AccountId","AssetId","AssetId","AssetId","Balance","Balance","Balance"] | |
| BuyExecuted | 4605 | ["AccountId","AssetId","AssetId","AssetId","Balance","Balance","Balance"] | |
| TradableStateUpdated | 4606 | ["AssetId","AssetId","Tradability"] | |
| AmplificationChanging | 4607 | ["AssetId","NonZeroU16","NonZeroU16","BlockNumberFor","BlockNumberFor"] | |
| PoolDestroyed | 4608 | ["AssetId"] | |
| PoolPegSourceUpdated | 4609 | ["AssetId","AssetId","PegSource<AssetId>"] | |
| PoolMaxPegUpdateUpdated | 460a | ["AssetId","Perbill"] |
Name | Type | |
|---|---|---|
| Pools | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"pallet_stableswap:types:PoolInfo","keys_id":4,"value_id":668}} | |
| PoolPegs | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"pallet_stableswap:types:PoolPegInfo","keys_id":4,"value_id":429}} | |
| AssetTradability | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["U32","U32"],"value":"U8","keys_id":211,"value_id":234}} | |
| PoolSnapshots | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"pallet_stableswap:types:PoolSnapshot","keys_id":4,"value_id":669}} |
Name | Type | Value | |
|---|---|---|---|
| MinPoolLiquidity | U128 | 40420f00000000000000000000000000 | |
| MinTradingLimit | U128 | e8030000000000000000000000000000 | |
| AmplificationRange | RangeInclusive | 02001027 |
Name | Docs |
|---|---|
| IncorrectAssets | Creating a pool with same assets or less than 2 assets is not allowed. |
| MaxAssetsExceeded | Maximum number of assets has been exceeded. |
| PoolNotFound | A pool with given assets does not exist. |
| PoolExists | A pool with given assets already exists. |
| AssetNotInPool | Asset is not in the pool. |
| ShareAssetNotRegistered | Share asset is not registered in Registry. |
| ShareAssetInPoolAssets | Share asset is amount assets when creating a pool. |
| AssetNotRegistered | One or more assets are not registered in AssetRegistry |
| InvalidAssetAmount | Invalid asset amount provided. Amount must be greater than zero. |
| InsufficientBalance | Balance of an asset is not sufficient to perform a trade. |
| InsufficientShares | Balance of a share asset is not sufficient to withdraw liquidity. |
| InsufficientLiquidity | Liquidity has not reached the required minimum. |
| InsufficientLiquidityRemaining | Insufficient liquidity left in the pool after withdrawal. |
| InsufficientTradingAmount | Amount is less than the minimum trading amount configured. |
| BuyLimitNotReached | Minimum limit has not been reached during trade. |
| SellLimitExceeded | Maximum limit has been exceeded during trade. |
| InvalidInitialLiquidity | Initial liquidity of asset must be > 0. |
| InvalidAmplification | Amplification is outside configured range. |
| InsufficientShareBalance | Remaining balance of share asset is below asset's existential deposit. |
| NotAllowed | Not allowed to perform an operation on given asset. |
| PastBlock | Future block number is in the past. |
| SameAmplification | New amplification is equal to the previous value. |
| SlippageLimit | Slippage protection. |
| UnknownDecimals | Failed to retrieve asset decimals. |
| IncorrectInitialPegs | List of provided pegs is incorrect. |
| MissingTargetPegOracle | Failed to retrieve oracle entry. |
| IncorrectAssetDecimals | Creating pool with pegs is not allowed for asset with different decimals. |
| NoPegSource | Pool does not have pegs configured. |