Independent DeFi security desk · Status: operationalMethodology & corrections · Submit an incident
DeFi Safety · Fact checked

How to Read a DEX Swap Preview

The fields a beginner should review before confirming a swap interface.

This article may contain affiliate links. Commercial relationships are disclosed in the affiliate policy.

DeFi Safety — illustration keyed to this article's identifier. Source documents are listed under Sources and are not reproduced here.

A swap preview is the last screen between your intent and an irreversible transaction, and it is usually the only place where the trade is still describable in words. The interface is designed to be glanced at. Reading it properly means slowing down and pulling apart four numbers that are deliberately shown next to each other: the amount you pay, the amount you receive, the price impact, and the fee. When those four disagree with each other, the reason is almost always one of a small number of identifiable conditions.

The Ratio Between Input and Output Is the Trade

The most important field is not the dollar figure, it is the implied rate. Divide the output amount by the input amount and you have the price you are actually getting. Compare that rate against the same pair quoted elsewhere, and the gap tells you what the swap is costing you beyond the stated fee.

A preview that shows a slightly worse rate than the market is normal. A preview that shows a rate far outside the range you saw moments earlier is not normal, and it usually means one of three things: the pool you are trading against is shallow relative to your size, the price moved between when the interface loaded and when you are reading it, or the token you are quoting is the one that is illiquid.

Price Impact Deserves Its Own Reading

Price impact is the pool’s movement caused by your own trade, and it scales with your size relative to the pool. This is the field that separates a swap you can afford from one you cannot.

The rule of thumb is that impact grows faster than your trade size does. Doubling your order more than doubles the impact, because each increment of size eats into progressively thinner liquidity. The practical consequence is that splitting one large swap into several smaller ones executed over time is often materially cheaper than submitting it at once — not because the protocol treats them differently, but because the pool does.

If a preview shows an impact you would not accept, the answer is usually to reduce the size, not to increase the slippage tolerance.

Slippage Tolerance Is a Decision, Not a Setting

The slippage tolerance field sets how far the execution price may drift from the quoted price before the transaction reverts. Setting it high makes the trade more likely to succeed; setting it low protects the price and accepts that the transaction may simply fail.

The failure mode people regret is not a reverted swap. It is a swap that executes at a much worse price because the tolerance was widened until any outcome was acceptable. A tolerance set far above the normal volatility of the asset is effectively a decision to accept whatever the market gives you at that instant.

A tolerance that reflects the asset’s ordinary movement is a reasonable starting point. Anything dramatically wider should have a reason you can state out loud.

The Fee Line Deserves a Second Look

The fee is split between what the protocol keeps and what goes to the liquidity provider, and the split varies by pool and by tier. What matters for the preview is the total, and whether it is charged on the input or the output token.

The detail that catches people is that some pools quote the fee in a way that makes it look smaller than it is. If a fee appears to be a fraction of what you expected, check whether it is expressed as a fraction of the output rather than the input. The same nominal rate produces a different dollar cost depending on which side it applies to.

When to Stop

There are conditions where the correct action is to close the preview rather than adjust it.

  • The output token is not the one you intended to receive, even though the ticker looked familiar.
  • The price impact is high enough that you would not accept the same rate on a centralized venue.
  • The quoted rate is materially worse than what you observed on the same pair shortly before, without an explanation in the interface.
  • The transaction includes a permit or approval step you did not expect, since that authorizes spending rather than swapping.
  • The pool’s liquidity is concentrated in an address you cannot identify from the interface.

None of these are fixed by raising the slippage tolerance. They are all reasons to stop, check the addresses involved, and confirm what the contract will actually do.

Common Mistakes

  • Reading the output amount as the trade’s value without converting to the input rate.
  • Ignoring price impact because the fee looks small.
  • Setting slippage tolerance to an extreme value to make a transaction go through.
  • Swapping a token whose ticker resembles a better-known one.
  • Accepting a preview that includes an unexpected approval, which authorizes spending rather than trading.
  • Comparing a quoted rate against a market price captured at a different moment.

Sources and Limits

This article is a reading guide for decentralized exchange interfaces. It is educational and does not constitute financial, legal, tax or security advice. Swap interfaces differ in the fields they display and change their layouts frequently; confirm any label against the interface’s own documentation.

Sources