subscan
Runtime Modules / AssetConversion
Spec Version:
Events
Name
Lookup
Attributes
PoolCreated2e00["AccountId","PoolIdOf","AccountId","PoolAssetId"]
LiquidityAdded2e01["AccountId","AccountId","PoolIdOf","AssetBalance","AssetBalance","PoolAssetId","AssetBalance"]
LiquidityRemoved2e02["AccountId","AccountId","PoolIdOf","AssetBalance","AssetBalance","PoolAssetId","AssetBalance","Permill"]
SwapExecuted2e03["AccountId","AccountId","BoundedVec<MultiAssetId, MaxSwapPathLength>","AssetBalance","AssetBalance"]
Transfer2e04["AccountId","AccountId","MultiAssetId","AssetBalance"]
Storage Functions
Name
Type
Pools{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["polkadex_primitives:assets:AssetId","polkadex_primitives:assets:AssetId"],"value":"U128","keys_id":116,"value_id":631}}
NextPoolAssetId{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
Constants
Name
Type
Value
LPFeeU3203000000
PoolSetupFeeU1280010a5d4e80000000000000000000000
LiquidityWithdrawalFeeU3200000000
MintMinLiquidityU12864000000000000000000000000000000
MaxSwapPathLengthU3204000000
PalletId[U8; 8]70792f6173636f6e
AllowMultiAssetPoolsBool01
Error Types
Name
Docs
EqualAssetsProvided assets are equal.
UnsupportedAssetProvided asset is not supported for pool.
PoolExistsPool already exists.
WrongDesiredAmountDesired amount can't be zero.
AmountOneLessThanMinimalProvided amount should be greater than or equal to the existential deposit/asset'sminimal amount.
AmountTwoLessThanMinimalProvided amount should be greater than or equal to the existential deposit/asset'sminimal amount.
ReserveLeftLessThanMinimalReserve needs to always be greater than or equal to the existential deposit/asset'sminimal amount.
AmountOutTooHighDesired amount can't be equal to the pool reserve.
PoolNotFoundThe pool doesn't exist.
OverflowAn overflow happened.
AssetOneDepositDidNotMeetMinimumThe minimal amount requirement for the first token in the pair wasn't met.
AssetTwoDepositDidNotMeetMinimumThe minimal amount requirement for the second token in the pair wasn't met.
AssetOneWithdrawalDidNotMeetMinimumThe minimal amount requirement for the first token in the pair wasn't met.
AssetTwoWithdrawalDidNotMeetMinimumThe minimal amount requirement for the second token in the pair wasn't met.
OptimalAmountLessThanDesiredOptimal calculated amount is less than desired.
InsufficientLiquidityMintedInsufficient liquidity minted.
ZeroLiquidityRequested liquidity can't be zero.
ZeroAmountAmount can't be zero.
InsufficientLiquidityInsufficient liquidity in the pool.
ProvidedMinimumNotSufficientForSwapCalculated amount out is less than provided minimum amount.
ProvidedMaximumNotSufficientForSwapProvided maximum amount is not sufficient for swap.
PoolMustContainNativeCurrencyOnly pools with native on one side are valid.
InvalidPathThe provided path must consists of 2 assets at least.
PathErrorIt was not possible to calculate path data.
NonUniquePathThe provided path must consists of unique assets.
IncorrectPoolAssetIdIt was not possible to get or increment the Id of the pool.
CorrespondenceErrorUnable to find an element in an array/vec that should have one-to-one correspondencewith another. For example, an array of assets constituting a `path` should have acorresponding array of `amounts` along the path.