Name | Lookup | Parameters | |
---|---|---|---|
create | 3b00 | 1 | |
buy | 3b01 | 4 | |
swap | 3b02 | 4 | |
add_liquidity | 3b03 | 4 | |
remove_liquidity | 3b04 | 3 | |
enable_twap | 3b05 | 1 |
Name | Lookup | Attributes | |
---|---|---|---|
PoolCreated | 3b00 | ["PoolId","AccountId","BTreeMap<AssetId, Permill>","AssetId"] | |
LiquidityAdded | 3b01 | ["AccountId","PoolId","BTreeMap<AssetId, Balance>","Balance"] | |
LiquidityRemoved | 3b02 | ["AccountId","PoolId","BTreeMap<AssetId, Balance>"] | |
Swapped | 3b03 | ["PoolId","AccountId","AssetId","AssetId","Balance","Balance","Fee<AssetId, Balance>"] | |
TwapUpdated | 3b04 | ["PoolId","MomentOf","BTreeMap<AssetId, Rate>"] |
Name | Type | |
---|---|---|
PoolCount | {"origin":"PlainType","plain_type":"U128","PlainTypeValue":6} | |
Pools | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U128"],"value":"pallet_pablo:pallet:PoolConfiguration","keys_id":6,"value_id":604}} | |
TWAPState | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U128"],"value":"pallet_pablo:types:TimeWeightedAveragePrice","keys_id":6,"value_id":608}} | |
PriceCumulativeState | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U128"],"value":"pallet_pablo:types:PriceCumulative","keys_id":6,"value_id":609}} | |
LPTNonce | {"origin":"PlainType","plain_type":"U64","PlainTypeValue":11} |
Name | Type | Value | |
---|---|---|---|
PalletId | [U8; 8] | 70616c5f70626c6f | |
TWAPInterval | U64 | c0d4010000000000 |
Name | Docs |
---|---|
PoolNotFound | |
NotEnoughLiquidity | |
NotEnoughLpToken | |
PairMismatch | |
AssetNotFound | |
MustBeOwner | |
InvalidSaleState | |
InvalidAmount | |
InvalidAsset | |
CannotRespectMinimumRequested | |
AssetAmountMustBePositiveNumber | |
InvalidPair | |
InvalidFees | |
AmpFactorMustBeGreaterThanZero | |
MissingAmount | |
MissingMinExpectedAmount | |
MoreThanTwoAssetsNotYetSupported | |
NoLpTokenForLbp | |
NoXTokenForLbp | |
WeightsMustBeNonZero | |
WeightsMustSumToOne | |
StakingPoolConfigError | |
IncorrectAssetAmounts | |
UnsupportedOperation | |
InitialDepositCannotBeZero | |
InitialDepositMustContainAllAssets | |
MinAmountsMustContainAtLeastOneAsset | The `min_amounts` map passed to `remove_liquidity` must contain at least one asset. |
MustDepositMinimumOneAsset | The `assets` map passed to `add_liquidity` must contain at least one asset. |
CannotSwapSameAsset | Cannot swap an asset with itself. |
CannotBuyAssetWithItself | Cannot buy an asset with itself. |
IncorrectPoolConfig |