AssetHub Polkadot
subscan
Runtime Modules / AssetConversion
Spec Version:
Events
Name
Lookup
Attributes
PoolCreated3700["AccountId","PoolId","AccountId","PoolAssetId"]
LiquidityAdded3701["AccountId","AccountId","PoolId","Balance","Balance","PoolAssetId","Balance"]
LiquidityRemoved3702["AccountId","AccountId","PoolId","Balance","Balance","PoolAssetId","Balance","Permill"]
SwapExecuted3703["AccountId","AccountId","Balance","Balance","BalancePath"]
SwapCreditExecuted3704["Balance","Balance","BalancePath"]
Storage Functions
Name
Type
Pools{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["staging_xcm:v3:multilocation:MultiLocation","staging_xcm:v3:multilocation:MultiLocation"],"value":"U32","keys_id":148,"value_id":450}}
NextPoolAssetId{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
Constants
Name
Type
Value
LPFeeU3203000000
PoolSetupFeeU128402d93ef000000000000000000000000
PoolSetupFeeAssetstaging_xcm:v3:multilocation:MultiLocation0100
LiquidityWithdrawalFeeU3200000000
MintMinLiquidityU12864000000000000000000000000000000
MaxSwapPathLengthU3203000000
PalletId[U8; 8]70792f6173636f6e
Error Types
Name
Docs
InvalidAssetPairProvided asset pair 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.
ProvidedMinimumNotSufficientForSwapCalculated amount out is less than provided minimum amount.
ProvidedMaximumNotSufficientForSwapProvided maximum amount is not sufficient for swap.
InvalidPathThe provided path must consists of 2 assets at least.
NonUniquePathThe provided path must consists of unique assets.
IncorrectPoolAssetIdIt was not possible to get or increment the Id of the pool.
BelowMinimumThe destination account cannot exist with the swapped funds.