Name | Lookup | Parameters | |
---|---|---|---|
deposit_liquidity | 1900 | 7 | |
withdraw_liquidity | 1901 | 6 | |
initialize_pool | 1902 | 3 |
Name | Lookup | Attributes | |
---|---|---|---|
PoolIsInitialized | 1900 | ["AccountIdOf"] |
Name | Type | |
---|---|---|
Reserves | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["[U8; 32]","[U8; 32]"],"value":"Tuple:U128U128","keys_id":643,"value_id":640}} | |
PoolProviders | {"origin":"Map","n_map_type":{"hashers":["Identity","Identity"],"key_vec":["AccountId","AccountId"],"value":"U128","keys_id":644,"value_id":6}} | |
AccountPools | {"origin":"Map","n_map_type":{"hashers":["Identity","Blake2_128Concat"],"key_vec":["AccountId","[U8; 32]"],"value":"Vec<[U8; 32]>","keys_id":615,"value_id":639}} | |
TotalIssuances | {"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["AccountId"],"value":"U128","keys_id":0,"value_id":6}} | |
Properties | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["[U8; 32]","[U8; 32]"],"value":"Tuple:AccountIdAccountId","keys_id":643,"value_id":644}} |
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 |
UnableToOperateWithIndivisibleAssets | Unable to proceed operation with indivisible assets |
NotEnoughLiquidityOutOfFarming | Not enough liquidity out of farming to withdraw |
TargetAssetIsRestricted | Cannot create a pool with restricted target asset |