What is a DEX?

A DEX (Decentralized Exchange) is a cryptocurrency exchange that operates through smart contracts, allowing users to trade directly from their wallets without depositing funds to a central entity.

DEX vs CEX

FeatureDEXCEX
CustodyYour walletExchange holds
KYCUsually noneRequired
Token varietyAny tokenCurated
FeesGas + swap feeTrading fees
SpeedBlockchain speedInstant
SupportNoneCustomer service

How DEXs Work

AMM Model (Most Common)

  1. Liquidity providers deposit token pairs
  2. Smart contract creates liquidity pools
  3. Prices set by algorithm (x*y=k)
  4. Traders swap against pools
  5. LPs earn trading fees

Order Book DEXs

  • More like traditional exchanges
  • Limit orders possible
  • Examples: dYdX, Serum

Ethereum

  • Uniswap - Largest by volume
  • Curve - Stablecoin focus
  • 1inch - Aggregator

BNB Chain

  • PancakeSwap - Most popular

Solana

  • Jupiter - Leading aggregator
  • Raydium - Major liquidity

Layer 2s

  • Uniswap on Arbitrum/Optimism
  • Velodrome (Optimism)
  • Camelot (Arbitrum)

Using a DEX

Steps to Trade

  1. Connect wallet (MetaMask, etc.)
  2. Select tokens to swap
  3. Set slippage tolerance
  4. Review transaction
  5. Confirm in wallet
  6. Pay gas fee

Important Settings

  • Slippage - Price movement tolerance
  • Gas - Transaction speed
  • Deadline - Maximum wait time

DEX Advantages

Self-Custody

  • You control your keys
  • No exchange withdrawal limits
  • Can’t be frozen by exchange

Privacy

  • No KYC requirements
  • Pseudonymous trading
  • No account creation

Token Access

  • Trade any token on the chain
  • New tokens immediately
  • No listing process needed

Always Available

  • No maintenance downtime
  • No geographic restrictions
  • 24/7 operation

DEX Disadvantages

User Experience

  • Steeper learning curve
  • More responsibility
  • No customer support

Costs

  • Gas fees can be high
  • Slippage on large orders
  • Failed transactions still cost gas

Risks

  • Smart contract vulnerabilities
  • Scam tokens easy to create
  • Impermanent loss for LPs

DEX Aggregators

What They Do

  • Search multiple DEXs
  • Find best prices
  • Split trades for efficiency
  • 1inch
  • Jupiter (Solana)
  • Paraswap
  • 0x

Providing Liquidity

How It Works

  • Deposit equal value of two tokens
  • Receive LP tokens
  • Earn trading fees

Risks

  • Impermanent loss - Value change vs holding
  • Smart contract risk - Bugs/hacks
  • Token risk - One token may crash

DEX Security Tips

Before Trading

  • Verify contract addresses
  • Check token legitimacy
  • Start with small amounts

During Trading

  • Understand slippage
  • Review transaction details
  • Don’t rush

After Trading

  • Verify tokens received
  • Revoke unnecessary approvals
  • Track transactions

CEX to DEX Bridge

When moving from Binance or Coinbase to DEXs:

  1. Withdraw from CEX to your wallet
  2. Ensure correct network (don’t lose funds!)
  3. Connect wallet to DEX
  4. Start trading

The Future of DEXs

  • Better UX approaching CEX
  • Cross-chain swaps
  • More capital efficiency
  • Intent-based trading