Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.meteora.ag/llms.txt

Use this file to discover all available pages before exploring further.

This page lists the Anchor custom errors returned by the DAMM v1 amm program.
Anchor custom program errors start at 6000. When a transaction log contains custom program error: 0x1771, convert the hex value to decimal to find the matching code. For example, 0x1771 is 6001, which maps to InvalidFee.

Error Reference

CodeErrorMessageCommon cause
6000MathOverflowMath operation overflowArithmetic overflow or invalid intermediate value.
6001InvalidFeeInvalid fee setupFee fraction is invalid, out of bounds, or not allowed for the curve/config.
6002InvalidInvariantInvalid invariant dStable invariant calculation failed.
6003FeeCalculationFailureFee calculation failureFee math could not produce a valid value.
6004ExceededSlippageExceeded slippage toleranceOutput or LP amount did not satisfy the caller’s minimum/maximum threshold.
6005InvalidCalculationInvalid curve calculationSwap, deposit, or withdrawal math failed.
6006ZeroTradingTokensGiven pool token amount results in zero trading tokensLP amount is too small to produce output.
6007ConversionErrorMath conversion overflowNumeric cast cannot fit the target type.
6008FaultyLpMintLP mint authority must be ‘A’ vault lp, without freeze authority, and 0 supplyLP mint does not match required initialization constraints.
6009MismatchedTokenMintToken mint mismatchedToken account or vault mint does not match pool state.
6010MismatchedLpMintLP mint mismatchedLP token account or mint does not match pool state.
6011MismatchedOwnerInvalid lp token ownerLP token owner does not match the required signer or escrow.
6012InvalidVaultAccountInvalid vault accountDynamic Vault account does not match the expected token mint or PDA.
6013InvalidVaultLpAccountInvalid vault lp accountPool’s Dynamic Vault LP token account is invalid.
6014InvalidPoolLpMintAccountInvalid pool lp mint accountPool LP mint account is invalid.
6015PoolDisabledPool disabledOperation is blocked because the pool is disabled.
6016InvalidAdminAccountInvalid admin accountLegacy admin account check failed.
6017InvalidProtocolFeeAccountInvalid protocol fee accountProtocol fee token account does not match expected PDA or mint.
6018SameAdminAccountSame admin accountOld and new admin are identical in a legacy admin flow.
6019IdenticalSourceDestinationIdentical user source and destination token accountSwap source and destination are the same account.
6020ApyCalculationErrorApy calculation errorLegacy APY calculation failed.
6021InsufficientSnapshotInsufficient virtual price snapshotMissing virtual-price data for yield/APY math.
6022NonUpdatableCurveCurrent curve is non-updatableAttempted to override a curve that cannot be updated.
6023MisMatchedCurveNew curve is mismatched with old curveNew curve type differs from existing curve type.
6024InvalidAmplificationAmplification is invalidStable amp is not within the allowed range or permissionless value.
6025UnsupportedOperationOperation is not supportedInstruction is not supported for this pool or curve.
6026ExceedMaxAChangesExceed max amplification changesStable amp update exceeds max allowed change.
6027InvalidRemainingAccountsLenInvalid remaining accounts lengthDepeg, referral, zap, or remaining account list length is incorrect.
6028InvalidRemainingAccountsInvalid remaining accountA required remaining account is wrong or in the wrong order.
6029MismatchedDepegMintToken mint B doesn’t matches depeg type token mintDepeg configuration does not match the expected token mint.
6030InvalidApyAccountInvalid APY accountLegacy APY account validation failed.
6031InvalidTokenMultiplierInvalid token multiplierStable token multiplier is invalid for the token decimals or precision.
6032InvalidDepegInformationInvalid depeg informationDepeg type, cache, virtual price, or remaining account data is invalid.
6033UpdateTimeConstraintUpdate time constraint violatedStable amp or depeg update happened before the cooldown passed.
6034ExceedMaxFeeBpsExceeded max fee bpsTrade fee exceeds the program max.
6035InvalidAdminInvalid adminAdmin signer is not the configured program admin.
6036PoolIsNotPermissionedPool is not permissionedAdmin-only permissioned-pool operation was used on another pool type.
6037InvalidDepositAmountInvalid deposit amountPool creation or liquidity instruction received invalid token amounts.
6038InvalidFeeOwnerInvalid fee ownerPartner or fee owner signer/account does not match pool state.
6039NonDepletedPoolPool is not depletedBootstrap liquidity was attempted before the pool was depleted.
6040AmountNotPegToken amount is not 1:1Stable permissionless creation did not satisfy the expected peg ratio.
6041AmountIsZeroAmount is zeroInstruction amount is zero where a positive amount is required.
6042TypeCastFailedType cast errorNumeric cast failed.
6043AmountIsNotEnoughAmount is not enoughProvided amount is lower than the required minimum.
6044InvalidActivationDurationInvalid activation durationConfig or customizable activation duration is outside limits.
6045PoolIsNotLaunchPoolPool is not launch poolLaunch-pool-only instruction used on a non-launch pool.
6046UnableToModifyActivationPointUnable to modify activation pointActivation update attempted after the pre-activation swap window started.
6047InvalidAuthorityToCreateThePoolInvalid authority to create the poolConfig has a non-default creator authority and signer does not match.
6048InvalidActivationTypeInvalid activation typeActivation type is not 0 slot or 1 timestamp.
6049InvalidActivationPointInvalid activation pointActivation point is not in the allowed window.
6050PreActivationSwapStartedPre activation swap window startedAttempted restricted activation update after pre-activation swap began.
6051InvalidPoolTypeInvalid pool typePool type does not match the instruction requirement.
6052InvalidQuoteMintQuote token must be SOL,USDCMainnet alpha-vault launch path requires SOL or USDC quote-side mint.
6053InvalidTokenMetadataProgramInvalid token metadata programMetadata program account is not the Metaplex metadata program.
6054InvalidPermissionInvalid permissionOperator permission bitmap is zero or exceeds supported operations.
6055InvalidZapOutParametersInvalid zap out parametersZap protocol fee route parameters are invalid.
6056IncorrectATAIncorrect ATAToken account is not the expected associated token account.
6057InvalidWithdrawProtocolFeeZapAccountsInvalid withdraw protocol fee zap accountsZap protocol fee account set is malformed.
6058MintRestrictedFromZapSOL,USDC protocol fee cannot be withdrawn via zapZap protocol fee attempted for a restricted mint.
6059CpiDisabledCPI disabledInstruction rejects CPI invocation.
6060MissingZapOutInstructionMissing zap out instructionZap route instruction was not found in the transaction sysvar.
6061InvalidZapAccountsInvalid zap accountsZap route source/destination or account validation failed.