Tx Doctor / Solana error library / Invalid calculation in the route
Solana error: Invalid calculation in the route (0x1772)
The program's internal math rejected the route - usually a tiny amount, an extreme price impact, or a pool with almost no liquidity.
Why it happens
- The swap amount was dust-sized and the output rounded to zero.
- Price impact was so large the calculation overflowed a bound.
- The pool state changed between quote and execution.
How to fix it
- Increase the trade size above dust, or use a different pair.
- Re-quote and retry immediately so the route matches current pool state.
- Raise slippage slightly if the pool is volatile.
What it looks like in the logs
Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 failed: custom program error: 0x1772
Seeing this error right now? Paste your transaction signature and get the exact instruction, program and code that failed.
Diagnose my transaction