Name | Lookup | Parameters | |
---|---|---|---|
create_pool | 4900 | 11 | |
update_pool_data | 4901 | 9 | |
add_liquidity | 4902 | 2 | |
remove_liquidity | 4903 | 1 | |
sell | 4904 | 4 | |
buy | 4905 | 4 |
Name | Lookup | Attributes | |
---|---|---|---|
PoolCreated | 4900 | ["PoolId","Pool<AccountId, BlockNumberFor>"] | |
PoolUpdated | 4901 | ["PoolId","Pool<AccountId, BlockNumberFor>"] | |
LiquidityAdded | 4902 | ["AccountId","AssetId","AssetId","BalanceOf","BalanceOf"] | |
LiquidityRemoved | 4903 | ["AccountId","AssetId","AssetId","BalanceOf","BalanceOf"] | |
SellExecuted | 4904 | ["AccountId","AssetId","AssetId","BalanceOf","BalanceOf","AssetId","BalanceOf"] | |
BuyExecuted | 4905 | ["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":108}} | |
FeeCollectorWithAsset | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["AccountId","U32"],"value":"Bool","keys_id":540,"value_id":48}} |
Name | Type | Value | |
---|---|---|---|
MinTradingLimit | U128 | e8030000000000000000000000000000 | |
MinPoolLiquidity | U128 | 40420f00000000000000000000000000 | |
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 |