What is a DEX?
A DEX (Decentralized Exchange) is a peer-to-peer trading platform that lets users swap cryptocurrencies directly with each other using smart contracts, without a central authority holding their funds. Unlike centralized exchanges (Binance, Coinbase, Kraken), DEXs never take custody of your assets — trades happen directly between wallets.
The first major DEX, Uniswap, launched in 2018 and proved that automated market makers (AMMs) could rival centralized exchanges in efficiency. Today, DEXs process over $100 billion in monthly volume across all chains, with Uniswap alone handling more volume than many traditional stock exchanges.
DEXs are the backbone of DeFi — they enable price discovery, liquidity provision, and token trading without permission from any authority.
How DEXs Work
Two Models
| Model | How It Works | Examples | Pros | Cons |
|---|---|---|---|---|
| AMM (Automated Market Maker) | Prices set by liquidity pool ratios | Uniswap, Curve, PancakeSwap | Permissionless, always liquid | Price impact on large trades |
| Order Book | Limit/market orders matched like traditional exchanges | dYdX, Hyperliquid, Vertex | Precise pricing, lower slippage | Less liquidity, complex |
Most DeFi DEXs use the AMM model. Order-book DEXs are growing on L2s where fast matching is cheaper.
The AMM Trading Flow
- Connect wallet: MetaMask, Rainbow, etc.
- Select pair: Choose which tokens to swap (e.g., ETH → USDC)
- Set amount: Enter how much you want to trade
- Review: See expected output, price impact, and slippage
- Approve (first time only): Allow the DEX contract to spend your token
- Confirm: Sign the transaction, pay gas
- Receive tokens: Arrive in your wallet within seconds
How AMM Prices Work
No order book — prices are determined by the ratio of tokens in a liquidity pool:
Pool: 1,000 ETH + 3,000,000 USDC
Price: 1 ETH = 3,000 USDC
You buy 10 ETH from the pool:
- Pool now has 990 ETH + 3,030,303 USDC
- New price: 1 ETH = 3,060 USDC
- Your average price: ~3,030 USDC per ETH (slippage)
Larger trades cause more price movement (higher slippage). See our Slippage guide for details.
Major DEXs by Chain
Ethereum L1
| DEX | Type | Monthly Volume | Key Feature |
|---|---|---|---|
| Uniswap V3 | AMM (concentrated liquidity) | $30B+ | Most adopted, V4 hooks |
| Curve | AMM (stableswap) | $5B+ | Best for stablecoins/wrapped assets |
| Balancer | AMM (multi-token pools) | $2B+ | Custom weight pools (up to 8 tokens) |
| 1inch (aggregator) | Aggregator | $5B+ | Routes across all DEXs for best price |
Layer 2s
| DEX | Chain | Monthly Volume | Key Feature |
|---|---|---|---|
| Uniswap V3 | All L2s | $20B+ combined | Dominant across all chains |
| Aerodrome | Base | $3B+ | Ve(3,3) tokenomics, Base’s #1 DEX |
| Camelot | Arbitrum | $500M+ | Permissionless pools, gamified LP |
| Velodrome | Optimism | $500M+ | Ve(3,3) model, OP ecosystem |
| PancakeSwap | Multi-chain | $3B+ | Largest on BNB Chain |
Solana
| DEX | Monthly Volume | Key Feature |
|---|---|---|
| Jupiter (aggregator) | $15B+ | Routes across all Solana DEXs |
| Raydium | $5B+ | AMM + CLMM, open book order book |
| Orca | $1B+ | Whirlpools (concentrated liquidity) |
DEX vs CEX Comparison
| Feature | DEX | CEX |
|---|---|---|
| Custody | Non-custodial (your keys) | Custodial (exchange holds funds) |
| KYC | None | Required |
| Listing | Permissionless (any token) | Centralized (team decides) |
| Trading hours | 24/7, never down | 24/7 but outages occur |
| Fees | Gas + 0.01-1% trading fee | 0.1-0.5% trading fee |
| Liquidity | Varies by pair | Deep for major pairs |
| Security | Smart contract risk | Exchange hack/insolvency risk |
| Tax reporting | On-chain records | Exchange provides forms |
| Advanced orders | Limited (limit orders on some) | Full (stop-loss, leverage, options) |
DEX Aggregators
Aggregators like 1inch, Jupiter, and Paraswap don’t hold liquidity themselves — they route your trade across multiple DEXs to find the best price:
You want to swap 100 ETH for USDC:
1inch checks:
- Uniswap: 100 ETH → 298,500 USDC
- Curve: 100 ETH → 299,100 USDC
- Balancer: 100 ETH → 298,800 USDC
- SushiSwap: 100 ETH → 298,600 USDC
1inch splits: 60 ETH to Curve + 40 ETH to Uniswap
Result: 299,400 USDC (better than any single DEX)
Risks of Using DEXs
- Impermanent loss: If you provide liquidity, price divergence can reduce your returns
- Smart contract exploits: DEXs have been hacked (over $1B lost to DEX exploits total)
- Front-running: MEV bots can sandwich your trades, costing you 2-5% on large swaps
- Slippage: Large trades on shallow pools suffer significant price impact
- Rug pull tokens: Anyone can list a token — many are scams designed to drain liquidity
- No recourse: There’s no customer support to call if something goes wrong
Frequently Asked Questions
Q: Are DEXs safe? A: Major DEXs (Uniswap, Curve) are battle-tested with billions in TVL. But always verify you’re on the correct URL (beware of phishing clones) and understand the risks of the tokens you’re trading.
Q: Do I pay taxes on DEX trades? A: Yes, in most jurisdictions. Every swap is a taxable event (capital gain or loss). Tools like CoinTracker, Koinly, and TaxBit help calculate DEX tax obligations.
Q: Can I trade stocks on a DEX? A: Not traditional stocks. But you can trade tokenized stocks, synthetic assets (Synthetix), and prediction market outcomes on some DEXs.