Skip to content
Crypto News

Blockchain markets, protocols and regulation

DEX swaps: what you handle yourself

A DEX swap vs exchange trade shifts custody, token checks, approvals, gas, slippage and MEV protection to you. Use this six-step checklist before signing.

The Crypto News Editors

DEX swaps: what you handle yourself

When you swap on a DEX, you handle custody, token checks, approvals, gas, slippage and MEV protection yourself because no exchange checks or batches your order before it reaches the blockchain.

A pending public swap can be visible in the mempool, where bots may sandwich it with trades placed around yours. Flashbots Protect offers private routing to keep a swap out of the public mempool. For context on using it with MetaMask, flashbots protect metamask explains what private submission adds to this step.

DEX swap vs exchange trade: what changes

On a centralized exchange, the exchange matches your order off-chain and holds your trading balance. On a DEX, you sign transactions from your own wallet, and the blockchain processes them without an intermediary checking or batching your order.

That means you need to confirm the token and network, give the DEX contract permission to move your tokens, and choose the swap settings. You also need ETH for gas on Ethereum, even when the token you are swapping is something else.

Your pre-swap checklist

Use this list before you sign a DEX swap, especially the first time you trade a token or use a new DEX.

  • Keep ETH for gas. Set aside enough ETH to pay for the approval and swap transactions. Without gas, the wallet cannot submit them.
  • Verify the token contract address. Search for the address from a trusted project source and compare it with the one shown by the DEX. Token names and symbols can be copied, so the address is the useful check against swapping a lookalike.
  • Set the approval amount. An ERC-20 approval lets the DEX router move your tokens, and it can remain active after the swap. If you approve an unlimited amount, that contract can still move the token later, up to the allowance you granted. Approve only the amount you plan to swap, or revoke the allowance afterwards if you granted more. A swap may need a separate approval transaction before the swap itself.
  • Set slippage tolerance. Slippage is the price movement you are willing to accept between setting up and completing the swap. A tighter limit can cause the transaction to fail if the price moves beyond it; a wider limit accepts a larger change. Choose a limit you can live with before signing.
  • Choose private routing. A public transaction can be seen in the mempool before it is confirmed and may be sandwiched. Flashbots Protect is a private RPC option that routes a swap away from the public mempool, reducing that exposure; confirm that your wallet is using the intended RPC before sending.
  • Confirm the result on a block explorer. After the transaction is confirmed, check the transaction details for its status, token amounts and destination. This verifies what the wallet actually sent and received.