Error codes / Pump.fun Bonding Curve
BuySlippageBelowMinTokensOut
Pump.fun Bonding Curve · Custom(6042) · 0x179a
custom program error: 0x179a
What it means
Slippage: Would buy less tokens than expected min_tokens_out
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 6042 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.
- InvalidOrderDrift V2
- SimpleAmmBaseTokenCannotHaveFreezeAuthorityHeaven DEX
- UnexpectedWSOLLeftoverJupiter DCA
- AuctioneerAuthorityMismatchMetaplex Auction House
- IncorrectFreezeAtaMetaplex Candy Machine
- WrongCollectionMintKeyMetaplex Fixed Price Sale
- TypeCastFailedMeteora AMM
- InvalidPoolCreatorMeteora CP AMM (DAMM V2)
- PoolDisabledMeteora DLMM
- InvalidFeeRateLimiterMeteora Dynamic Bonding Curve
- TrimAccountIsNoneOKX DEX Aggregation Router V2
- NonEmptyOpenOrdersPositionOpenBook V2