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 Presale Vault presale 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 InvalidTokenInfo.

Error Codes

CodeNameMessageCommon cause
6000InvalidMintMetadataInvalid mint metadataMint metadata account does not match the expected base mint metadata.
6001InvalidTokenInfoInvalid token infoToken account, mint, or token program input is inconsistent.
6002InvalidTokenSupplyInvalid token supplyRegistry supply is zero or summed registry supply exceeds supported bounds.
6003InvalidPresaleInfoInvalid presale infoInvalid caps, timestamps, duration, whitelist mode, presale mode, registry count, or registry caps.
6004InvalidQuoteMintInvalid quote mintA quote mint account does not match presale state.
6005InvalidBaseMintInvalid base mintA base mint account does not match presale state.
6006InvalidLockVestingInfoInvalid lock vesting infoLock plus vest duration is too long, immediate release bps is invalid, or timestamp constraints are invalid.
6007InvalidTokenPriceInvalid token priceFixed-price q_price is zero, overflows, cannot buy at least one base lamport, or cannot cover supply/caps.
6008MissingPresaleExtraParamsMissing presale extra params accountFixed-price initialization did not pass the fixed-price extra-args account as the first remaining account, or it references a different presale.
6009ZeroTokenAmountZero token amountDeposit, withdrawal, claim, or rounded fixed-price amount is zero.
6010UnsupportedToken2022MintOrExtensionToken2022 extensions or native mint is not supportedToken 2022 mint uses an unsupported extension or the native Token 2022 mint was supplied.
6011InvalidCreatorAccountInvalid creator accountCreator signer does not match Presale.owner.
6012PresaleNotOpenForDepositPresale is not open for depositPresale progress is not Ongoing.
6013PresaleNotOpenForWithdrawPresale is not open for withdrawPresale is not ongoing, mode does not allow withdraw, or fixed-price withdrawal is disabled.
6014PresaleNotOpenForWithdrawRemainingQuotePresale is not open for withdraw remaining quotePresale is neither failed nor a completed prorata presale with refundable quote.
6015InvalidPresaleWhitelistModeInvalid presale whitelist modeCalled a permissionless instruction on a permissioned presale, or a permissioned instruction on the wrong permission mode.
6016PresaleEndedPresale is endedTried to create Merkle root config or permissioned metadata after the presale ended.
6017PresaleNotOpenForClaimPresale is not open for claimPresale has not completed successfully.
6018InvalidMerkleProofInvalid merkle proofProof does not match the stored root for owner, registry index, and deposit cap.
6019DepositAmountOutOfCapDeposit amount out of capEscrow deposit falls outside registry min/max after deposit or withdrawal.
6020MathOverflowMath overflowArithmetic overflow or division issue in price, fee, cap, refund, or vesting math.
6021InsufficientEscrowBalanceInsufficient escrow balanceWithdrawal amount exceeds escrow deposit.
6022RemainingQuoteAlreadyWithdrawnRemaining quote has already been withdrawnEscrow already performed remaining quote refund.
6023PresaleNotCompletedPresale not completedUnsold base token action was attempted before successful completion.
6024NoUnsoldTokensNo unsold tokensLegacy no-unsold-token path. Current unsold base action uses NoUnsoldBaseTokens.
6025EscrowNotEmptyEscrow is not emptyEscrow cannot be closed because deposits, refunds, or claimable tokens remain.
6026InvalidUnsoldTokenActionInvalid unsold token actionUnsold token action enum value is not refund or burn.
6027CreatorAlreadyWithdrawnCreator has already withdrawncreator_withdraw was already executed.
6028UndeterminedErrorUndetermined errorInternal state or cast failed in a path the program treats as unreachable.
6029InvalidTokenVaultInvalid token vaultVault account does not match presale state.
6030InvalidRemainingAccountSliceInvalid remaining account sliceToken 2022 transfer-hook slice type or length is invalid for the instruction.
6031DuplicatedRemainingAccountTypesDuplicated remaining account typesRemainingAccountsInfo includes duplicate base or quote transfer-hook slice types.
6032MissingRemainingAccountForTransferHookMissing remaining account for transfer hookMint has a transfer hook but required remaining accounts were not supplied.
6033NoTransferHookProgramNo transfer hook programRemaining transfer-hook accounts were supplied for a mint without a transfer-hook program.
6034InvalidOperatorInvalid operatorOperator owner or creator relationship does not match the presale.
6035NoUnsoldBaseTokensNo unsold base tokensUnsold base token action found no unsold base tokens.
6036UnsoldBaseTokenActionAlreadyPerformedUnsold base token action already performedUnsold base token action was already executed.
6037InvalidPresaleRegistryIndexInvalid presale registry indexRegistry index is outside initialized registry count.
6038MultiplePresaleRegistriesNotAllowedMultiple presale registries are not allowedMultiple registries were supplied for a permissionless presale.
6039InvalidDepositCapInvalid deposit capPermissioned escrow deposit cap is zero or outside registry min/max.
6040PresaleNotOpenForCollectFeePresale is not open for collect feePresale is not completed, or creator deposit fee was already collected.
6041InvalidTypeInvalid typeBoolean-like or enum-like numeric field has an invalid value.
6042InvalidBuyerCapRangeInvalid buyer cap rangePermissioned fixed-price or dynamic-price registry cap range does not match required values.
6043PresaleOngoingPresale is ongoingTried to close a Merkle root config while deposits are ongoing.
6044PresaleMinMaxCapGapTooSmallPresale min/max cap gap too smallFixed-price min/max cap gap cannot buy a distinct amount of base token.