What Is a DEX? Decentralized Exchanges Explained

July 13, 2026 3 min read

A decentralized exchange (DEX) allows peer-to-peer crypto trading without a central intermediary. Trades happen directly on-chain via smart contracts.

How DEXs Work

ComponentWhat It Does
Smart contractHolds liquidity and executes trades
Liquidity poolPool of tokens provided by users
Liquidity providers (LPs)Users who deposit tokens to earn fees
AMM (Automated Market Maker)Algorithm that sets prices

CEX vs DEX

FactorCEX (Binance, Coinbase)DEX (Uniswap, PancakeSwap)
CustodyExchange holds your fundsYou hold your funds
KYCRequiredNot required
Trading pairsAny (even fiat)Crypto only
FeesLower (0.1-0.5%)Higher (0.3-1%)
SpeedInstant (off-chain)Depends on blockchain
SecurityCentralised riskSmart contract risk

How AMM Pricing Works

The Constant Product Formula (x × y = k):

VariableMeaning
xAmount of Token A in the pool
yAmount of Token B in the pool
kConstant (total liquidity)

Example: A pool has 100 ETH and 200,000 USDC. Price = 2,000 USDC per ETH. Buying 1 ETH reduces ETH in the pool and increases USDC, changing the price.

Types of DEXs

TypeExampleHow It Works
AMM (most popular)Uniswap, CurveAutomated market maker
Order bookdYdX, SerumTraditional order matching
Aggregator1inch, CowSwapRoutes through multiple DEXs for best price
RFQParaswapRequest for quote

Liquidity Pools

RoleRewardRisk
Liquidity providerTrading fees (0.3% of each trade)Impermanent loss
TraderTrades against the poolSlippage

Impermanent Loss

Price ChangeImpermanent Loss
No change0%
1.25×0.6%
1.5×2.0%
5.7%
13.4%
20.0%

Impermanent loss is the difference between holding tokens and providing them as liquidity.

ChainPopular DEXs
EthereumUniswap, Curve, Balancer
SolanaOrca, Raydium, Jupiter
ArbitrumUniswap, Camelot
BaseAerodrome, Uniswap
PolygonQuickswap, SushiSwap
BSCPancakeSwap, Biswap

DEX Risks

RiskDescription
Smart contract bugHacked pool = lost funds
Impermanent lossLP value drops vs holding
SlippageLarge trades move the price
FrontrunningMEV bots exploit your trade
Rug pullMalicious LP creators drain the pool

Bottom Line

DEXs let you trade crypto without a central exchange or KYC. Uniswap is the most popular, using AMMs and liquidity pools. Risks include impermanent loss for LPs and slippage for traders. DEX aggregators like 1inch offer the best prices across multiple DEXs. Always check the smart contract risk before using a new DEX.

← Back to Crypto Basics Search all articles
This content is for educational purposes only. Not financial advice. Do your own research before investing.