Error reference

Anchor numbers custom errors from 6000 in the order they are declared in error.rs.

CodeNameMeaning
6000NotUpgradeAuthorityOnly the program's upgrade authority can set the launch config
6001AssetCountA pool holds between 2 and 16 coins
6002MintOrderMints must be passed in strictly ascending order
6003MintSetMismatchThe mint set does not hash to the pool seed
6004DecimalsMismatchEvery coin of a pool must have the same decimals
6005MintProgramMint is not owned by the SPL Token or Token-2022 program
6006MintExtensionMint has a transfer hook, a transfer fee or is non-transferable
6007CoinIndexCoin index is out of range or the two coins are the same
6008CoinAccountAccount does not match the pool's mint, vault or token program for that coin
6009BandIndexBand index is out of range
6010ZeroAmountAmount must be greater than zero
6011AmountCountOne amount is required per coin of the pool
6012SlippageSlippage limit exceeded
6013InputShortfallThe vault received less than the amount sent
6014InsolventVault balance is below what the pool owes
6015PositionNotEmptyPosition still holds liquidity or uncollected fees
6016PositionTooSmallPosition holds less liquidity than requested
6017NothingToCollectNo fees to collect for this coin
6018MathOverflowArithmetic overflow
6019NoInteriorLiquidityNo interior liquidity: every band with liquidity is pinned at its edge
6020ExceedsLiquidityTrade is larger than the pool's bands can price
6021NegativePriceTrade would push the coin sold past a zero price
6022TooManySegmentsTrade crosses too many band edges
6023CapExceededPool size cap reached
6024ZeroOutputTrade pays nothing
6025QuoteNotInPoolThe burn coin is not in this pool
6026ConvertPriceGuardFee conversion would fall below the price guard
6027BurnPoolInvalidBurn pool account is not the configured Raydium CP-Swap pool
6028BurnTwapUnavailableBurn pool has no time-weighted price over the window yet
6029BurnAmountInvalidBurn amount is zero, above the protocol fees or above the per-call cap

What to do

ErrorUsually meansFix
SlippageThe pool moved between quote and sendQuote again, or widen the limit
ExceedsLiquidityThe trade is bigger than every band together can priceSplit it
NegativePriceThe trade would push the coin sold past a zero priceTrade less
TooManySegmentsThe trade crosses too many band edges in one instructionSplit it
NoInteriorLiquidityEvery band with liquidity is pinned at its edgeWait for deposits or a trade back toward $1
CoinAccountA mint, vault or token program does not match the poolDerive vaults as the pool's associated token accounts
DecimalsMismatchCoins with different decimalsA pool's coins must share decimals
Next: FAQ