Have you ever looked at a swap quote and thought, “Okay, that’s exactly what I’m going to receive,” only to execute the trade and find the final amount slightly different?
The reality is that several distinct concepts are at play, and it’s easy to mix them up.
When you request a swap quote, the expected output already reflects market conditions at that exact moment—including available liquidity and the resulting price impact. However, a quote isn’t a guaranteed execution price.
Understanding the Quote
For example, if your quote shows:
- You pay:
100 USDC - You receive:
0.035 ETH
That 0.035 ETH isn’t just the raw market price of ETH waiting to be reduced by fees. It is an estimate calculated based on the available routes and liquidity conditions at the exact second the quote was generated. However, market conditions can shift before the transaction lands on-chain.
Key factors affecting your final swap execution
1. Price impact
Price impact is the effect your specific trade has on the available liquidity pool. A larger trade relative to pool depth results in a less favorable execution price.
Note: The quoted output already accounts for price impact. If limited liquidity results in a lower output, you are seeing that reflected directly in the initial quote.
2. Slippage
Slippage accounts for how much the broader market moves between the moment you receive the quote and when the transaction actually executes.
- Slippage Tolerance: Sets a boundary defining how much the price can move against you before the transaction automatically reverts to protect you from a bad fill.
- Minimum Received: The minimum output shown in the UI reflects your slippage tolerance settings.
3. Swap & protocol fees
Fees associated with the specific aggregator, interface, or liquidity source are distinct from price impact or slippage. They represent separate operational costs that affect the total economics of the trade.
4. The swap route
Swaps rarely follow a simple Token A → Token B path. Depending on available liquidity, an aggregator might split your order across multiple protocols or use intermediate routing assets (e.g., Token A → USDC → Token B). Because routing dynamics fluctuate constantly, requesting a fresh quote just a few seconds later can yield a different result.
Key takeaways
To make sense of your trade execution, think of the components like this:
- Quote: The expected output based on real-time market conditions.
- Price Impact: The cost of your order size relative to liquidity (already factored into the quote).
- Slippage: Your safeguard against market price movements during execution.
- Gas: The network transaction fee paid to miners/validators.
- Protocol/Swap Fees: Platform-specific charges applied to the routing path.
Understanding these distinctions makes it much easier to pinpoint whether a variation in your final payout was caused by normal market movement, slippage, routing, or protocol fees.