What Is a Centralized Exchange (CEX)?
A centralized exchange is a company that operates a trading platform and holds custody of your funds while you use it. When you deposit crypto to Coinbase, Binance, or Kraken, those companies hold the actual private keys to your assets. You have an account balance that the exchange promises to honor, but you don’t directly control the underlying crypto.
How CEXes Work
CEXes operate much like traditional stock exchanges or brokerages:
The exchange’s order book maintains a list of all outstanding buy and sell orders. The matching engine continuously pairs compatible orders and executes trades at agreed prices.
Examples of CEXes
What Is a Decentralized Exchange (DEX)?
A decentralized exchange is a set of smart contracts running on a blockchain that facilitates trading without any company in the middle. There are no accounts, no KYC, no custody of your funds by a third party. You connect your own wallet and trade directly against the protocol.
How DEXes Work
Most modern DEXes use an Automated Market Maker (AMM) model:
The price in an AMM pool is determined algorithmically based on the ratio of tokens in the pool. When you buy token A with token B, you increase the supply of B and decrease A, making A more expensive.
Examples of DEXes
CEX vs DEX: Full Comparison
| Feature | CEX | DEX |
|---|---|---|
| Account required | Yes (email, KYC) | No |
| KYC | Required | Not required |
| Custody of funds | Exchange holds keys | You hold keys |
| Privacy | Low (full identity) | High (wallet address only) |
| Fiat on-ramp | Yes (bank/card) | No (need crypto first) |
| Coin selection | Listed by exchange | Any token with a pool |
| Trading fees | 0.1–0.5% typical | 0.01–1% pool fee + gas |
| Gas fees | Not applicable | Required on every trade |
| Liquidity | Deep for major pairs | Varies widely |
| Customer support | Yes | No |
| Hack risk | Exchange hot wallet | Smart contract bug |
| Regulatory risk | Platform can be forced to close | Protocol runs on blockchain |
| Ease of use | Easy to moderate | Moderate to difficult |
| Speed | Near-instant (internal) | Seconds to minutes (blockchain) |
Security Comparison
CEX Security Risks
The biggest risk of a CEX is the same as any custodian: if the exchange is hacked, goes bankrupt, or is shut down by regulators, your funds may be inaccessible or lost.
Historical examples:
- Mt. Gox (2014) — 850,000 BTC lost in hack
- FTX (2022) — $8B in customer funds missing due to fraud
- Celsius, Voyager (2022) — bankruptcy after mismanaging customer funds
CEXes mitigate this with cold storage (keeping most funds offline), insurance on hot wallets, proof-of-reserves audits, and regulatory compliance. Reputable exchanges like Coinbase, Kraken, and Gemini have strong security track records. But the risk exists — you are trusting the exchange.
“Not your keys, not your coins” is the maxim. As long as funds sit on an exchange, you don’t fully own them in the crypto sense.
DEX Security Risks
DEXes eliminate custodial risk — no company holds your funds. But they introduce different risks:
Privacy Comparison
CEXes require full identity verification. Your real name, address, government ID, and all trading activity is linked to your account and reported to tax authorities in most jurisdictions.
DEXes only see your wallet address. There’s no name attached. However, blockchain transactions are fully public — anyone can see what address traded what, when, and for how much. Chain analytics firms can often link wallet addresses to real identities through on-chain forensics.
For most users, this distinction matters primarily for tax reporting — CEX transactions are already reported to authorities; DEX transactions require self-reporting.
Fee Comparison
CEX Fees
Most CEXes charge a maker/taker fee on spot trades. Standard fees range from:
- Binance: 0.1% (0.075% with BNB)
- Kraken Pro: 0.16% maker / 0.26% taker
- Coinbase Advanced: 0.40% maker / 0.60% taker
- Gemini ActiveTrader: 0.20% maker / 0.40% taker
Volume discounts reduce these fees for high-volume traders.
DEX Fees
DEX fees are split into:
On Ethereum mainnet, gas can be $10–50 per swap, making DEXes expensive for small trades. On Layer 2s (Arbitrum, Base, Optimism), gas is $0.05–0.50, making DEXes very competitive.
For large trades: DEX fees can actually be lower than CEX fees for liquid pairs on L2s (low gas + competitive pool fees).
For small trades on mainnet: CEXes are almost always cheaper due to gas costs.
When to Use a CEX
Use a centralized exchange when:
When to Use a DEX
Use a decentralized exchange when:
Hybrid Exchanges
Some platforms combine elements of both CEX and DEX:
dYdX v4 operates as a decentralized protocol with an order book (rather than AMM), offering CEX-like trading experience with non-custodial fund handling.
Cowswap uses an off-chain order matching system with on-chain settlement, protecting users from MEV (miner extractable value — a form of front-running on DEXes).
1inch is a DEX aggregator — not an exchange itself, but a router that finds the best price across multiple DEXes (Uniswap, Curve, Balancer, etc.) and splits orders for optimal execution.
DEX Aggregators: Getting the Best Price
DEX aggregators solve one of the main problems with DEXes — fragmented liquidity across many pools and protocols. Instead of manually checking multiple DEXes, an aggregator does it automatically.
1inch
The most widely used DEX aggregator. 1inch scans dozens of DEXes across multiple chains and routes your swap through whichever combination gives you the best final price, sometimes splitting across multiple routes.
How to use 1inch:
- Go to app.1inch.io
- Connect wallet
- Select tokens and amount
- 1inch shows you the routing and estimated output
- Confirm the swap
1inch itself doesn’t charge additional fees — it earns from a small spread on the routing. Your effective cost is usually better than trading on any single DEX directly.
Other popular aggregators: Paraswap, 0x Protocol (Matcha), Odos.
Frequently Asked Questions
Can I use a DEX without KYC?
Yes. DEXes have no identity verification. You connect a wallet and trade. This is one of their core features. Note that while the exchange itself doesn’t require KYC, your wallet transactions are publicly visible on the blockchain.
What happens if Uniswap shuts down?
The Uniswap protocol consists of smart contracts deployed on Ethereum and other blockchains. Even if the company shut down, the contracts would continue operating as long as the underlying blockchain runs. The app.uniswap.org frontend could go offline, but other interfaces (or direct contract interaction) would still work.
Is it safe to keep crypto on a CEX?
Regulated CEXes with strong security practices are reasonably safe for amounts you trade actively. For long-term storage of significant amounts, moving to a hardware wallet (self-custody) is the recommended approach.
Why do DEX transactions sometimes fail?
Transaction failures on DEXes usually occur because: (1) slippage tolerance was exceeded — price moved before your transaction was processed; (2) insufficient gas; or (3) smart contract conditions weren’t met. You’ll still pay gas for failed transactions.
Can a DEX get hacked?
The DEX’s smart contracts can have vulnerabilities exploited. Over the history of DeFi, hundreds of millions have been lost to smart contract exploits. Using established, heavily audited protocols like Uniswap significantly reduces (but doesn’t eliminate) this risk. Your personal wallet can also be compromised independently of the DEX.
Do I need a different wallet for different DEXes?
No. Most DEXes use the same wallet standards. A MetaMask or hardware wallet that supports Ethereum will work on Uniswap, SushiSwap, Curve, 1inch, and most other EVM-compatible DEXes. You just need to connect the same wallet.
Related guides:

Leave a Reply