Compare the expected output, minimum received and separate network cost before deciding whether a swap meets your intended terms.
Understand what the quote represents
A decentralised exchange lets contracts match or execute trades. In an automated market maker (AMM), a pool holds assets and pricing follows its rules. A simple constant-product pool uses x × y = k before accounting for fees; concentrated-liquidity pools instead allocate liquidity across selected price ranges. Do not apply one pool model to every DEX.
- Trader supplies an input asset
- Router chooses one or more pool routes
- Contracts enforce price and amount constraints
- Pools rebalance assets
- Receipt records actual movements
An exact-input quote fixes the amount sold and sets a minimum output. An exact-output quote targets the amount received and sets a maximum input. Compare quotes in the same mode on the same network, pair and amount. Verify token addresses; a familiar ticker can belong to a different contract.
Read the quote in this order
| Field | Decision it supports |
|---|---|
| Input / output token contracts | Are these the intended assets and network? |
| Expected output | What is the current estimated receipt? |
| Minimum received / maximum input | What is the worst execution permitted by the request? |
| Route and fees | Which pools, versions and intermediaries are involved? |
| Price impact | How much does this order move the pool price? |
| Slippage tolerance | What additional movement between quote and execution is allowed? |
| Network fee | What native asset is paid separately? |
Price impact is already reflected in a correctly computed quote. Slippage tolerance is a protection boundary, not a guaranteed additional charge. Do not subtract both again as if every quote necessarily loses the full tolerance.
Compare estimates and execution limits
A basic 1% haircut on 100 gives 99, but an interface can derive the limit differently depending on routing and exact-input/output mode. Read the displayed minimum and the actual transaction parameters. A higher slippage tolerance can increase exposure to unfavorable execution and MEV; it is not a general fix for failed swaps.
Find the failure before retrying
| Observation | Check |
|---|---|
| Approval succeeded; swap failed | Treat them as separate transactions. Review the remaining allowance. |
| Minimum output not met | Refresh the quote and compare liquidity, amount and market movement. |
| Deadline expired | Obtain a new quote; review pending transaction status before resubmitting. |
| Balance or gas shortfall | Distinguish the input token from the native asset needed for fees. |
| Receipt says success | Reconcile actual token transfers, recipient and output rather than relying on the earlier estimate. |
Keep the original quote, chain and transaction hash. A reverted on-chain swap can still charge gas. A route through several pools can have fees included in its estimated output; subtract only costs identified as separate.
Frequently asked questions
Does increasing slippage guarantee execution?
No. Insufficient balance, expired deadlines, unavailable liquidity and contract restrictions can still cause failure.
Can I compare two quotes taken hours apart?
They do not describe the same market conditions. Refresh both for a like-for-like decision.
Risks and limits
Public records explain what a network recorded. They do not prove a counterparty’s identity, future returns, contract safety or that an exchange credited an account. Network fees and protocol rules can change. This guide is educational; no wallet connection is needed to read it or use its tools.
Sources
- Uniswap swap mechanics and protection parameters
- Uniswap v2 constant-product model
- Transaction execution
Verification Notes
Existing swap-quote examples were consolidated and their purpose retained. No live quote or swap was executed. Examples labelled illustrative are calculations, not live quotes. Source review is not a test transaction or security audit. Check current network, deployment and parameters before taking action.