FixesUpdated 23 Oct 20261 min read

PumpSwap error 6004 (0x1774): ExceededSlippage

The fix

A trade on a PumpSwap pool would fill worse than your slippage limit because the pool price moved first. On buys sized in SOL, the same problem shows as 6040.

Tools covered

  1. PumpSwapswap.pump.fun returned only a title banner when fetched.UpVisit

What the error means

Error Code: ExceededSlippage. Error Number: 6004.

A trade on a PumpSwap pool would fill worse than your slippage limit because the pool price moved first. On buys sized in SOL, the same problem shows as 6040.

Where it comes fromPumpSwap AMM program
Code6004 (0x1774); also 6040 (0x1798) BuySlippageBelowMinBaseAmountOut

How to fix it

  1. Raise slippage a little, or trade a smaller amount.
  2. Raise the priority fee.
  3. Retry with a fresh quote; graduated coins can move fast right after migration.

If that is not it

  • 6039 BuyNotEnoughQuoteTokensToCoverFees means the wallet cannot cover fees, not slippage.

More fixes: how to decode any Solana error code and why Solana transactions fail.

Source

Error text and code from PumpSwap program IDL (pump-fun/pump-public-docs, idl/pump_amm.json), read on 24 October 2026.

Questions people ask

What is PumpSwap error 6004?

ExceededSlippage: the pool price moved past your slippage limit before the trade ran.

Where do PumpSwap pools come from?

pump.fun coins graduate into them, and anyone can create one, see [Jupiter vs PumpSwap](/en/resources/compare/jupiter-vs-pumpswap).

PumpSwap error 6004 (0x1774): ExceededSlippage | Jumpbit