SORA
subscan
Runtime Modules / PoolXYK
Spec Version:
Call Functions
Name
Lookup
Parameters
deposit_liquidity19007
withdraw_liquidity19016
initialize_pool19023
Events
Name
Lookup
Attributes
PoolIsInitialized1900
Storage Functions
Name
Type
Reserves{"origin":"DoubleMapType","double_map_type":{"key":"AssetId","key2":"AssetId","hasher":"Blake2_128Concat","key2Hasher":"Blake2_128Concat","value":"(Balance, Balance)","isLinked":false}}
PoolProviders{"origin":"DoubleMapType","double_map_type":{"key":"AccountIdOf","key2":"AccountIdOf","hasher":"Identity","key2Hasher":"Identity","value":"Balance","isLinked":false}}
AccountPools{"origin":"MapType","map_type":{"key":"AccountIdOf","hasher":"Identity","value":"BTreeSet<AssetIdOf>","isLinked":false}}
TotalIssuances{"origin":"MapType","map_type":{"key":"AccountIdOf","hasher":"Identity","value":"Balance","isLinked":false}}
Properties{"origin":"DoubleMapType","double_map_type":{"key":"AssetId","key2":"AssetId","hasher":"Blake2_128Concat","key2Hasher":"Blake2_128Concat","value":"(AccountId, AccountId)","isLinked":false}}
Error Types
Name
Docs
UnableToCalculateFee It is impossible to calculate fee for some pair swap operation, or other operation.
FailedToCalculatePriceWithoutImpact Failure while calculating price ignoring non-linearity of liquidity source.
UnableToGetBalance Is is impossible to get balance.
ImpossibleToDecideAssetPairAmounts Impossible to decide asset pair amounts.
PoolPairRatioAndPairSwapRatioIsDifferent Pool pair ratio and pair swap ratio are different.
PairSwapActionFeeIsSmallerThanRecommended Pair swap action fee is smaller than recommended.
SourceBalanceIsNotLargeEnough Source balance is not large enough.
TargetBalanceIsNotLargeEnough Target balance is not large enough.
UnableToDeriveFeeAccount It is not possible to derive fee account.
FeeAccountIsInvalid The fee account is invalid.
SourceAndClientAccountDoNotMatchAsEqual Source and client accounts do not match as equal.
AssetsMustNotBeSame In this case assets must not be same.
ImpossibleToDecideDepositLiquidityAmounts Impossible to decide deposit liquidity amounts.
InvalidDepositLiquidityBasicAssetAmount Invalid deposit liquidity base asset amount.
InvalidDepositLiquidityTargetAssetAmount Invalid deposit liquidity target asset amount.
PairSwapActionMinimumLiquidityIsSmallerThanRecommended Pair swap action minimum liquidity is smaller than recommended.
DestinationAmountOfLiquidityIsNotLargeEnough Destination amount of liquidity is not large enough.
SourceBaseAmountIsNotLargeEnough Source base amount is not large enough.
TargetBaseAmountIsNotLargeEnough Target base amount is not large enough.
PoolIsInvalid The balance structure of pool is invalid.
PoolIsEmpty The pool has empty liquidity.
ZeroValueInAmountParameter Amount parameter has zero value, it is invalid.
AccountBalanceIsInvalid The account balance is invalid.
InvalidDepositLiquidityDestinationAmount Invalid deposit liquidity destination amount.
InitialLiqudityDepositRatioMustBeDefined Initial liquidity deposit ratio must be defined.
TechAssetIsNotRepresentable Technical asset is not representable.
UnableToDecideMarkerAsset Unable or impossible to decide marker asset.
UnableToGetAssetRepr Unable or impossible to get asset representation.
ImpossibleToDecideWithdrawLiquidityAmounts Impossible to decide withdraw liquidity amounts.
InvalidWithdrawLiquidityBasicAssetAmount Invalid withdraw liquidity base asset amount.
InvalidWithdrawLiquidityTargetAssetAmount Invalid withdraw liquidity target asset amount.
SourceBaseAmountIsTooLarge Source base amount is too large.
SourceBalanceOfLiquidityTokensIsNotLargeEnough Source balance of liquidity is not large enough.
DestinationBaseBalanceIsNotLargeEnough Destination base balance is not large enough.
DestinationTargetBalanceIsNotLargeEnough Destination base balance is not large enough.
InvalidAssetForLiquidityMarking Asset for liquidity marking is invalid.
AssetDecodingError Error in asset decoding.
CalculatedValueIsOutOfDesiredBounds Calculated value is out of desired bounds.
BaseAssetIsNotMatchedWithAnyAssetArguments The base asset is not matched with any asset arguments.
DestinationAmountMustBeSame Some values need to be same, the destination amount must be same.
SourceAmountMustBeSame Some values need to be same, the source amount must be same.
PoolInitializationIsInvalid The pool initialization is invalid and has failed.
PoolIsAlreadyInitialized The pool is already initialized.
InvalidMinimumBoundValueOfBalance The minimum bound values of balance are invalid.
ImpossibleToDecideValidPairValuesFromRangeForThisPool It is impossible to decide valid pair values from range for this pool.
RangeValuesIsInvalid This range values is not validy by rules of correct range.
CalculatedValueIsNotMeetsRequiredBoundaries The values that is calculated is out out of required bounds.
GettingFeeFromDestinationIsImpossible In this case getting fee from destination is impossible.
FixedWrapperCalculationFailed Math calculation with fixed number has failed to complete.
ThisCaseIsNotSupported This case if not supported by logic of pool of validation code.
PoolBecameInvalidAfterOperation Pool becomes invalid after operation.
UnableToConvertAssetToTechAssetId Unable to convert asset to tech asset id.
UnableToGetXORPartFromMarkerAsset Unable to get XOR part from marker asset.
PoolTokenSupplyOverflow Pool token supply has reached limit of data type.
IncRefError Couldn't increase reference counter for the account that adds liquidity. It is expected to never happen because if the account has funds to add liquidity, it has a provider from balances.
UnableToDepositXorLessThanMinimum Unable to provide liquidity because its XOR part is lesser than the minimum value (0.007)
UnsupportedQuotePath Attempt to quote via unsupported path, i.e. both output and input tokens are not XOR.
NotEnoughUnlockedLiquidity Not enough unlocked liquidity to withdraw
UnableToCreatePoolWithIndivisibleAssets Cannot create a pool with indivisible assets