What Is a DEX?
Decentralized exchange. Swap tokens straight from your wallet. No middleman. No company custody. Smart contract executes it.
Connect wallet. Pick tokens. Confirm. Done. Never handed control of anything to anyone.
Sounds simple. First time using one is less simple. But once it clicks it's hard to go back to asking a company for permission to trade your own money.
How the Swap Actually Happens
Most DEXs don't use order books. No matching buyers with sellers.
Liquidity pools instead. Two tokens sitting in a smart contract. Want to swap ETH for USDC. Send ETH in. Pool sends USDC back. Price determined automatically by how much of each token is in the pool at that moment.
Constant product formula running underneath. x times y equals k. Every swap shifts the ratio. Shifts the price. More ETH entering the pool makes ETH relatively cheaper inside it. Arbitrageurs correct any gap between pool price and market price constantly.
Liquidity providers deposit both tokens and earn fees from every swap. That's why liquidity exists there at all.
The Actual Reason People Use DEXs
New token launches on Raydium or Uniswap hours or days before any CEX lists it. The only way to be early is through the DEX. Biggest moves on new tokens happen in windows CEX traders miss entirely because the token doesn't exist on their platform yet.
No custody risk. FTX held customer funds and used them for something else. Funds on a DEX stay in the wallet throughout the entire swap. Smart contract touches them for seconds during execution. That's it. No company that can fail, freeze withdrawals, or quietly become insolvent.
No KYC. Wallet and internet connection. That's the barrier. No passport. No waiting. No getting rejected because of your country.
Permissionless Cuts Both Ways
Anyone can list a token. That's the feature that makes DEXs valuable.
Also the feature that makes them a minefield.
No review process. No listing approval. Rugpull deploys a contract, adds liquidity, creates a Telegram group. Token trading on Raydium within the hour. Honeypot does the same thing. Bundled launch, insider buy, everything sketchy possible happens on DEXs because nothing stops it.
CEX listing requires passing some review. Catches some bad actors. Misses plenty. But something versus nothing.
DEX is nothing. Pure permissionless. Early opportunities and every scam in existence come from the same feature simultaneously. Can't separate them.
The Ones That Matter
Uniswap. Invented the AMM model everything else copied. Dominant on Ethereum and most Layer 2s. Billions in daily volume. V3 introduced concentrated liquidity which changed how serious LPs manage positions. If you're trading on Ethereum or any major L2, you've probably used Uniswap without realizing it even when using a different interface.
Hyperliquid. On-chain perpetuals exchange running on its own Layer 1. Fully decentralized but trades like a CEX. Order book model not AMM. No custody risk, no KYC, but execution speed and liquidity that actually competes with centralized derivatives platforms. Grew from almost nothing to billions in daily perp volume in 2024. Biggest story in on-chain trading that year.
Jupiter. Solana aggregator routing across multiple DEXs to find best price. Became the default interface for Solana trading. Most people on Solana use Jupiter without thinking about what's underneath it.
Raydium. Where most new Solana tokens launch liquidity pools. Trading fresh Solana launches means ending up on Raydium whether planned or not.
Curve. Stablecoin specialist. Extremely low slippage on stable and correlated pairs. Different formula than Uniswap optimized for assets that should trade near the same price. Not exciting. Works exceptionally well for what it does. Billions in TVL for years.
When Code Fails
No company means no customer support. Also no entity responsible when something breaks.
Smart contract exploited. Liquidity drained. Gone. No insurance by default. No recovery. No one to call.
Curve Finance exploited in 2023 despite years of operation and multiple audits. Tens of millions drained. Reentrancy vulnerability in older Vyper compiler versions. Nobody caught it.
Established protocols safer than new unaudited ones. Not safe. Safer. Different thing. Risk shrinks with time and scrutiny. Never hits zero on a smart contract.
