What Are Decentralized Exchanges?
Lesson by Uvin Vindula
A Decentralized Exchange (DEX) is a platform that allows users to trade cryptocurrencies directly with each other (peer-to-peer) without relying on a centralized intermediary to hold funds or facilitate trades. Unlike centralized exchanges (CEXs) like Binance or Coinbase, DEXs operate through smart contracts on a blockchain.
How DEXs Differ from CEXs
| Feature | CEX (Binance, Coinbase) | DEX (Uniswap, PancakeSwap) |
|---|---|---|
| Custody | Exchange holds your funds | You keep your own keys |
| KYC required | Yes | No (usually) |
| Account creation | Email, ID verification | Just connect a wallet |
| Downtime risk | Exchange can go offline | Runs on blockchain 24/7 |
| Trading mechanism | Order book | Automated Market Maker (AMM) |
The FTX Lesson
The collapse of FTX in 2022 — where $8 billion in customer funds were lost — was a powerful reminder of why DEXs matter. When you trade on a CEX, you are trusting that exchange with your money. With a DEX, your funds stay in your wallet until the moment of the trade, and they go directly to the counterparty through a smart contract.
How a DEX Trade Works
- Connect your wallet (MetaMask, Trust Wallet, etc.) to the DEX.
- Select the tokens you want to swap (e.g., ETH → USDC).
- Review the price and fees (including gas fees and slippage).
- Approve and confirm the transaction in your wallet.
- The smart contract executes the swap atomically — both sides complete or neither does.
For Sri Lankans who may face restricted access to international CEXs, DEXs provide an alternative path to access global crypto markets with nothing more than a wallet and internet connection.
Key Takeaways
- •DEXs allow peer-to-peer trading without a centralized intermediary
- •Your funds stay in your wallet — no custodial risk
- •DEXs use smart contracts and AMMs instead of traditional order books
- •No KYC is typically required — just connect a wallet
- •The FTX collapse highlighted the importance of non-custodial trading
Quick Quiz
Question 1 of 3
0 correct so far
What is a key advantage of DEXs over CEXs?