subscan
Runtime Modules / Pablo
Spec Version:
Call Functions
Name
Lookup
Parameters
create3b001
buy3b014
swap3b024
add_liquidity3b034
remove_liquidity3b043
enable_twap3b051
Events
Name
Lookup
Attributes
PoolCreated3b00["PoolId","AccountId","BTreeMap<AssetId, Permill>","AssetId"]
LiquidityAdded3b01["AccountId","PoolId","BTreeMap<AssetId, Balance>","Balance"]
LiquidityRemoved3b02["AccountId","PoolId","BTreeMap<AssetId, Balance>"]
Swapped3b03["PoolId","AccountId","AssetId","AssetId","Balance","Balance","Fee<AssetId, Balance>"]
TwapUpdated3b04["PoolId","MomentOf","BTreeMap<AssetId, Rate>"]
Storage Functions
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}
Constants
Name
Type
Value
PalletId[U8; 8]70616c5f70626c6f
TWAPIntervalU64c0d4010000000000
Error Types
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
MinAmountsMustContainAtLeastOneAssetThe `min_amounts` map passed to `remove_liquidity` must contain at least one asset.
MustDepositMinimumOneAssetThe `assets` map passed to `add_liquidity` must contain at least one asset.
CannotSwapSameAssetCannot swap an asset with itself.
CannotBuyAssetWithItselfCannot buy an asset with itself.
IncorrectPoolConfig