Error codes / Raydium AMM V3 (CLMM)
PriceSlippageCheck
Raydium AMM V3 (CLMM) · Custom(6021) · 0x1785
custom program error: 0x1785
What it means
The swap would have paid out less than the minimum this transaction allowed. The price moved between the moment the quote was taken and the moment the transaction executed, by more than the slippage tolerance set in the swap.
The program's own message: “Price slippage check”
What to do
Increase your slippage tolerance or reduce the trade size, then retry — the price moved between quote and execution.
TxWhy can repair this one
When the swap was routed through Jupiter, TxWhy replaces only the stale swap instruction with a current quote for the same tokens, amount and slippage tolerance, keeps every other instruction byte for byte, and proves the result passes simulation.
Code 6021 means something else in other programs
Custom codes are private to each program. Check which program actually raised it: it is the innermost failed call, not necessarily the program you called.
- NothingToSplitBoop
- ClockUnavailableDrift V2
- InvalidProtocolSwapFeeWalletHeaven DEX
- WrongAdminJupiter DCA
- BuyerATACannotHaveDelegateMagic Eden V2
- BuyerATACannotHaveDelegateMetaplex Auction House
- CollectionNotFoundMetaplex Bubblegum
- NetworkExpireFeatureMissingMetaplex Candy Machine
- MarketInInvalidStateMetaplex Fixed Price Sale
- TransferNotSupportedMetaplex Hydra
- InsufficientSnapshotMeteora AMM
- InvalidMinimumLiquidityMeteora CP AMM (DAMM V2)