Skip to main content
DigitalFinances

Glossary · DeFi

What is Decentralized exchange (DEX)?

An exchange built as on-chain smart contracts rather than a company. Users trade directly from their wallets without depositing assets with a custodian. Uniswap, Curve, dYdX, Jupiter are the major venues.

Last updated April 30, 2026

How it works

A DEX is a set of smart contracts on a blockchain that handle order matching and asset custody. Two main models exist:

  • AMM (automated market maker) DEXs — Uniswap, Curve, Balancer. Liquidity sits in pools; trades execute against a mathematical curve. Most common model.
  • Order-book DEXs — dYdX, Hyperliquid, Serum (defunct). On-chain or hybrid order books that more closely resemble a CEX.

Either way, you connect your wallet (MetaMask, Phantom, etc.), approve the contract to spend your tokens, and submit a swap. The contract executes the trade and your wallet receives the output token in the same transaction. No account, no KYC, no custody handoff.

Example

To swap 100 USDC for ETH on Uniswap:

  1. Connect MetaMask to app.uniswap.org
  2. Pay an "approve" transaction (one-time, ~$3 in gas) to let Uniswap's router move USDC out of your wallet
  3. Pay the "swap" transaction (~$5–15 in gas at typical Ethereum pricing)
  4. Receive ETH in your wallet within ~12 seconds (one block)

Total cost ~$8–18 in gas plus a 0.30% swap fee on the trade itself. On Layer-2s (Arbitrum, Base) the gas drops to pennies.

Why it matters

DEXs solve some real problems:

  • No counterparty risk — funds never leave your wallet
  • Permissionless listings — any token can be paired with any other; no exchange approval needed
  • 24/7, global, no KYC — the contract doesn't care who you are or what country you're in

They also have real downsides:

  • Gas fees can dwarf small trades, especially on Ethereum mainnet
  • No customer service — lose your seed phrase and there's no recovery
  • Risk of buggy contracts — exploits have drained billions over the years
  • MEV / sandwich attacks — bots front-run large trades to extract value
  • Tax complexity — every swap is a taxable event in the US

The CEX-vs-DEX choice isn't binary. Most active users hold long-term positions in self-custody, use a CEX for fiat on/off ramps, and a DEX for accessing tokens or DeFi positions that aren't available on centralized venues. Coinbase Wallet and the Phantom wallet now have DEX functionality built in to make the workflow smoother.

Related terms

Read more