Decentralized exchanges: check a swap before you sign

A decentralized exchange (DEX) lets you trade through blockchain contracts instead of placing funds in a conventional exchange account. Keeping your keys changes the risks; it does not remove them. This lesson follows a simple same-network token swap, from checking the asset to reading the receipt.

Your task: explain what you are authorizing, the least you will receive and the total cost before approving a swap.

Decentralized finance illustration for reviewing a DEX token swap

Follow the trade through three layers

Wallet: your authorization

Connecting shows the app your public address. An approval or permit can authorize token spending; a swap executes the trade. These are different actions. A signature without a gas fee can still grant valuable permissions. Never enter a recovery phrase into a trading website.

Router: the proposed route

An automated market maker trades against pool reserves; an order-book DEX matches orders. Aggregators may split a trade across several pools or use other execution systems. Read the route and its terms. A familiar interface does not make every token or contract trustworthy.

Blockchain: the settlement

A submitted transaction is pending until included. A successful receipt records execution, not whether you bought a legitimate asset. Smart-contract bugs, malicious tokens, compromised websites and transaction ordering remain risks. A same-network swap does not move assets to another blockchain.

Walkthrough: inspect the quote, then the wallet request

Verify the network and asset

Open the protocol from a verified official source. Match the network in the app and wallet. Compare the full token contract address with the project’s official documentation and a block explorer; a ticker or logo is not an identifier. Keep enough native gas currency for approvals, the swap and later transfers.

Read the complete quote

Check input, expected output, price impact, minimum received and every displayed fee. Price impact comes from your trade; slippage describes a change between quote and execution. Raising slippage tolerance does not improve a bad quote. Refresh an old quote and reconsider the amount or route if the result is unacceptable.

Authorize, then verify

Check the spending contract, token, allowance and any expiry in each wallet prompt. Limit permissions to what you understand. After submission, inspect the transaction hash on the correct explorer: status, token contract, amounts and recipient. Disconnecting the app does not revoke token approvals; review unused permissions separately.

Worked example: a minimum is a boundary, not a promise

200 × (1 − 0.01)=198

Suppose a standard exact-input pool swap quotes 200 tokens for 100 USDC. A 1% tolerance gives an illustrative minimum of 198 tokens. Pool fees are already included in this hypothetical quote; gas is separate. If execution would deliver 197, a correctly enforced minimum makes the swap revert. An included failed transaction can still consume gas. At 5% tolerance the minimum becomes 190: you have allowed a worse result, not reduced price impact. Read the actual wallet or order minimum because execution systems can differ.

Three mistakes to catch before signing

Treating a ticker as proof

Two contracts can use the same name. Check the full address and network independently. A small successful purchase does not prove that you can later sell, or that the contract cannot change its restrictions.

Approving an unlimited allowance casually

A spending approval may expose more than this trade. Check what the spender can access, including signed permits. An audit or a hardware wallet does not make an unsafe authorization harmless.

Swapping the entire gas balance

Tokens on one network cannot pay fees on another merely because their tickers match. Leave the required gas asset available. Check a pending transaction before submitting again to avoid unintended repeat trades.

Try it: spot the unsafe decision

A quote shows 500 tokens, 2% tolerance and separate gas. You calculate a minimum of 490. The wallet requests unlimited spending by an unfamiliar contract. Should you sign because the minimum looks correct? What if the transaction reverts after inclusion?

Reveal the reasoning

No. The arithmetic checks only the output boundary, not the spending permission or token legitimacy. Stop and verify the spender and scope. If an included transaction reverts, its swap state changes are rolled back, but gas used can still be charged. The 490-token boundary does not protect against every other risk.

Cryptocurrency wallet and keys illustrating secure access and recovery

A little groundwork goes a long way

Before your next purchase or transfer, understand who controls access, where your crypto is going and what the trade will actually cost.

Protect access to your crypto

An exchange account and a self-custody wallet need different safeguards. Protect exchange logins with a unique password and strong two-factor authentication. For self-custody, your recovery backup is what lets you restore access.

Keep recovery words offline and private. A support agent or website asking for them is a reason to stop.

See a recovery example

Your phone breaks. An exchange may help you recover your account after identity checks. A self-custody wallet cannot reset your recovery phrase. Check your wallet’s official backup instructions before relying on it.

Choose the right transfer network

The asset, token version and network must be supported at the destination. A familiar ticker or a matching address format is not enough. Read the receiving platform’s deposit instructions before selecting a withdrawal network.

Check the address, any required memo or tag, fees and minimums. Consider a small test transfer first.

See a network example

Your destination accepts USDC on Ethereum. Selecting a cheaper network at the sending exchange does not make it an Ethereum transfer. Use a network both ends support; an ordinary withdrawal does not bridge tokens.

Understand the price you pay

Trading fees are only part of the cost. The spread, available liquidity and withdrawal charges also matter. A market order prioritizes execution; a limit order controls the price but may remain unfilled or fill only partly.

Check the order preview and the amount you will receive, then compare the full cost of your intended purchase and withdrawal.

Work through a cost example

Hypothetical example: a $200 trade with a 0.1% trading fee costs $0.20 in trading fees. A separate $5 withdrawal fee brings those charges to $5.20. Spread or slippage may add more; these are not quoted exchange rates.