Error reference

Every custom error the program can return, with what causes it and what to do.

CodeNameMessageWhat to do
6000NotUpgradeAuthoritySigner is not the program's upgrade authorityOnly the launch step uses this; nothing for users
6001MintNotAcceptedCampaigns raise USDC or wrapped SOL onlyPick USDC or SOL
6002ZeroGoalGoal must be greater than zeroSet a goal
6003ZeroBonusBonus deposit must be greater than zeroEvery campaign needs a bonus
6004BonusRateOutOfRangeBonus rate is outside the allowed rangeUse 1% to 50%
6005BonusAboveGoalBonus deposit is more than the rate can ever pay out below the goalLower the deposit or raise the rate: deposit / rate must not exceed the goal
6006DurationOutOfRangeCampaign length is outside the allowed range1 to 90 days
6007UriTooLongMetadata URI is too long200 bytes at most
6008ZeroAmountAmount must be greater than zeroEnter an amount
6009CampaignClosedThe campaign deadline has passedIt can only be settled now
6010EligibleBelowMinimumLess bonus-eligible amount is left than the backer asked forSomeone filled the early room first; pledge again with the new figure
6011DeadlineNotReachedThe campaign deadline has not passed yetWait for the deadline to settle
6012AlreadySettledThe campaign is already settledClaim instead
6013NotSettledThe campaign is not settled yetRun settle first
6014CreatorAlreadyPaidThe creator has already been paidNothing left for the creator
6015ClaimsOutstandingBackers, the creator or the fee waiver still have something to claimRun the remaining claims, then close
6016BurnTokenNotSetThe PLEDGE token is not set yetBefore launch the burn cannot run
6017WaiverAlreadyLockedA fee waiver is already lockedOne waiver per campaign
6018NoWaiverLockedNo fee waiver is lockedNothing to release
6019BurnPoolNotSetNo burn pool is set for this mintThat mint's fees wait until a pool exists
6020BurnPoolInvalidBurn pool account does not match the configured poolPass the pool named in Config
6021BurnTwapUnavailableBurn pool has no time-weighted price over the required windowWait until the pool has 30 minutes of history
6022BurnAmountInvalidBurn amount is zero, above the fee balance or above the per-call pool limitSpend at most 0.1% of the pool's reserve
6023WrongRecipientToken account does not belong to the recipientClaims pay only the owner's own account
6024MathOverflowArithmetic overflowAmounts too large for u64

Raydium's own ExceededSlippage can also come back from crank_burn when the pool price has moved more than 2% from its 30-minute average: the call refuses to buy at a bad price.