FailTax

Guide · updated 27 November 2026

Solana slippage: when raising it helps and when it gets you sandwiched

On Solana, a slippage setting that is too tight makes fast-moving swaps fail with errors like SlippageToleranceExceeded (0x1771) or Pump.fun's TooMuchSolRequired (6002), and each failure still pays the network fee. A setting that is too wide lets sandwich bots buy just before you and sell just after: a 2026 Bitquery study found Jupiter swaps into Pump.fun coins allowing 20 to 50 percent slippage were sandwiched about 14 times as often as swaps under 3 percent. The safe move is to raise slippage a little, not to 20 percent or more, and to skip or size down on coins that need more than about 10 percent extra.

Too tight: the trade fails and still pays

Slippage is how far the price may move against you between signing a swap and the swap landing. On fresh memecoins the price can move a lot in a second. When it moves past your limit the program stops the swap:

The swap is reverted, but the transaction still pays its network fee, priority fee included. Resending at the same setting usually fails again and pays again.

Too wide: you get sandwiched

A wide setting tells everyone watching the network how much worse a price you will accept. Sandwich bots use exactly that room: they buy right before your swap and sell right after it. Bitquery's 2026 study of Jupiter swaps into Pump.fun coins:

Slippage allowedCaught in a sandwich, per 10,000 swaps
1% to 3%8
3% to 10%44
10% to 20%87
20% to 50%148

Past a few percent, the more room a trade leaves, the more often a bot takes it: swaps at 20 to 50% were caught about 14 times as often as swaps under 3%.

A setting that does neither

  1. Start low, around 1 to 5% for most coins.
  2. If a trade fails on slippage, raise it a little and try once, not to 20% or more.
  3. If a coin keeps needing more than about 10% extra, it is moving too fast: skip it, wait, or buy a smaller amount.
  4. Don't hammer resend. Each resend pays the fee again; wait for a fresh quote.

FailTax reads your own failed swaps' logs and says how far past your limit they went, then gives this advice for your numbers. It never suggests going wide.

Sources: Bitquery, "Solana sandwich bots took $29.7M from memecoin buyers" (2026); Jupiter and Pump.fun program error codes.

Questions

What slippage should I use on Solana?

Use the lowest setting that lets your trades land. A little extra helps on fast coins, but past a few percent sandwich bots take the gap. If a coin needs more than about 10% extra, skip it or buy a smaller amount.

What does error 0x1771 mean on Solana?

0x1771 is error 6001, SlippageToleranceExceeded, from swap programs such as Jupiter: the price moved past your slippage limit, so the swap failed. The network fee is still paid.

What is a sandwich attack?

A bot sees your pending swap, buys just before it to push the price up, lets your swap fill at the worse price your slippage allows, then sells right after. The wider your slippage, the more it can take.