Day 10 — Exchanges: CEX vs DEX
When most people start in crypto, they create an account on Coinbase or Binance, deposit some dollars, and click "buy." The experience is intentionally designed to feel like a brokerage app. Username, password, two-factor authentication, market price, click buy, done.
What is happening underneath looks nothing like what is happening on the screen.
A centralized exchange (a CEX) is a company that operates a trading venue. They hold your assets in their own wallets. They match your buy order against someone else's sell order on their internal order book. They credit your account in their database. When you "have 0.1 BTC on Coinbase," what you really have is a database entry saying Coinbase owes you 0.1 BTC. The actual bitcoin sits in Coinbase's wallets, mixed with everyone else's.
This is not a critique. CEXs are convenient. They have customer service. They handle fiat on-ramps. They make the experience easy enough for billions of people to participate. The biggest CEXs (Coinbase, Binance, Kraken, OKX, Bybit) collectively account for the vast majority of crypto trading volume. They are real businesses, with real revenue, real compliance teams, and real regulatory oversight.
A decentralized exchange (a DEX) is something fundamentally different. There is no company holding your assets. There is no internal order book. There are smart contracts deployed on a blockchain that anyone in the world can interact with. When you trade on Uniswap, you are connecting your wallet (which holds your keys) to the contract, the contract executes the swap directly on chain, and the new tokens land in your wallet. The exchange itself is just code. It does not pause. It does not freeze your account. It does not have a customer service number to call. It just runs.
The mechanic that makes DEXs work is the automated market maker (AMM), and we'll cover the math in detail on Day 17. For today, the simplest version: instead of matching buy and sell orders, a DEX uses liquidity pools (pools of two assets, say ETH and USDC) and a formula to set prices automatically. Liquidity providers earn fees for providing the assets. Traders pay slightly more than the spot price for the convenience of instant, always-available trades.
The cleanest way to understand the difference is to look at what happened when the systems were stress-tested.
Mt. Gox was the largest Bitcoin exchange in the world in 2013. It handled roughly 70% of all Bitcoin trading volume. In February 2014 it went bankrupt and froze withdrawals, eventually revealing that approximately 850,000 bitcoin (worth about $450 million at the time, billions today) had been lost or stolen over a period of years. Customers waited a decade to receive partial reimbursement. Many never recovered their full holdings.
FTX was the second-largest crypto exchange in the world in 2022. Sam Bankman-Fried was on the cover of Fortune Magazine. The company had a Super Bowl ad. In November 2022, the exchange collapsed in about ten days. Customer funds had been quietly diverted to a sister hedge fund (Alameda Research) and used to make trades that did not work out. Roughly $8 billion of customer money was missing. Trial, conviction, twenty-five-year prison sentence. The hole did get filled eventually because the remaining FTX estate's holdings recovered in value, but during the months when customers had no idea if they would ever see their money again, the lesson was clear.
Now contrast this with the same period for the major DEXs. Uniswap processed tens of billions of dollars in transactions through 2022. It did not lose customer funds. It could not lose customer funds. Customer funds never left customer wallets. The exchange was a smart contract that executed swaps; the assets only ever lived in the wallets of the people who controlled them. When FTX collapsed, the Uniswap smart contracts kept running. They are still running.
This is the structural difference, and it is the most important thing to understand about the CEX-versus-DEX distinction. A CEX is a custodian who happens to operate an exchange. A DEX is a piece of software that happens to facilitate trades. When a CEX fails, customer funds are at risk. When a DEX fails (rare, but possible through smart contract bugs), specific trades or pools might be impacted, but the assets in your wallet are not.
So when do you use which?
Use a CEX when: You need to convert dollars to crypto or vice versa (the fiat on-ramp). You want regulatory protections and reporting (1099s for US taxes, etc.). You need customer service if something goes wrong. You're working with a token that isn't widely traded on DEXs. You want a familiar interface.
Use a DEX when: You want to keep your assets in self-custody throughout. You're trading a long-tail token that hasn't been listed on a major CEX. You want guaranteed access (CEXs can pause withdrawals or freeze accounts; DEXs cannot). You're operating at scale and want to avoid the counterparty risk of holding meaningful balances on any single exchange.
For most users, the right answer is "both." Use a reputable CEX for the on-ramp and off-ramp, move what you're not actively trading into self-custody, and use a DEX for anything where you specifically want non-custodial access or are dealing with assets not available on the CEX.
A practical heuristic, learned the expensive way by a lot of FTX customers: the amount you keep on any single CEX should be the amount you would not mind losing entirely if that CEX failed tomorrow. That number is different for different people. For some, it is operating-level balances. For others, it is meaningful holdings they trust the institution to safeguard. There is no universal right answer. There is your answer, and you should know what it is.
Tomorrow we go deeper on custody at scale. Hardware wallets, multisig, custody services, and the wallet types we touched on in Day 4 but haven't fully unpacked.
Glossary
| Term | Definition |
|---|---|
| Centralized exchange (CEX) | A company that operates a trading venue, holds customer assets, and matches trades on an internal order book. (Coinbase, Binance, Kraken.) |
| Decentralized exchange (DEX) | A trading venue implemented as smart contracts on a blockchain. Customer assets stay in self-custody throughout. (Uniswap, Curve, dYdX.) |
| Order book | A matched list of buy and sell orders at various prices. The traditional market mechanism CEXs use. |
| Automated Market Maker (AMM) | The pricing mechanism most DEXs use instead of an order book. Uses liquidity pools and a formula to set prices algorithmically. (Detailed in Day 17.) |
| Liquidity pool | A pool of two assets supplied to a DEX that provides the inventory for trades. |
| Liquidity provider (LP) | Someone who deposits assets into a liquidity pool to earn trading fees. |
| On-ramp / off-ramp | The process of converting fiat (dollars) to crypto (on-ramp) or crypto to fiat (off-ramp). Almost always done through a CEX. |
| KYC/AML | Know Your Customer / Anti-Money Laundering. The identity-verification process required by regulated CEXs. |
| Slippage | The difference between the expected price of a trade and the actual price you get. Common on DEXs for low-liquidity assets. |
| Counterparty risk | The risk that the other party in a financial arrangement (in this case, a CEX) fails to honor their obligations. |
Reality check
A friend asks why anyone would use a DEX when CEXs are easier. Give them the strongest single-sentence answer.
The strongest answer is some version of: because the assets never leave your wallet, so an exchange failure cannot cost you the principal. If your answer was something else (fees, anonymity, specific tokens), those are real but secondary. The structural feature that makes DEXs categorically different is non-custodial trading. That is the thing.
Read deeper
1. Understanding DEXs (Decentralized Exchanges) in Crypto by The Block
The clean overview of the DEX category.
Read on IMPCT (curated commentary) | Read original (theblock.co)
Deven's take. Read this for the architectural picture without the math (the math comes on Day 17). The most important shift to internalize: a DEX is not a competitor to Coinbase. It is a different category of thing. A DEX is the smart-contract equivalent of an open market, where the rules of trading are enforced by code and the venue cannot fail in the same ways a custodial exchange can. CEXs and DEXs coexist because they serve different needs, not because one is better than the other.
2. What is Coinbase? and What is Binance? by The Block
The two biggest CEXs.
Read on IMPCT (curated commentary on both) | Read original Coinbase (theblock.co) | Read original Binance (theblock.co)
Deven's take. Skim both for context, particularly if you don't have accounts on either yet. Coinbase is the most regulatory-compliant US CEX. Binance is the largest by global volume but has been less compliant historically (it paid a $4.3B settlement in 2023). For US-based users, Coinbase is the default starting point. For international users, the calculus is different. Pick one based on jurisdiction and reputation, not based on whichever has the most flashy product launches.
3. What is Mt. Gox? by The Block
The original cautionary tale.
Read on IMPCT (curated commentary) | Read original (theblock.co)
Deven's take. Mt. Gox is the founding myth of "not your keys, not your coins." It is also a textbook case study in why centralized custody concentration is dangerous. At its peak Mt. Gox handled 70% of all Bitcoin trading. When it failed, the entire market took years to recover. The pattern repeated almost exactly with FTX nine years later. The fact that the industry made the same mistake twice should tell you something about how strong the incentives are to centralize and how careful you should be about where you store assets you care about.
4. FTX Collapse (multiple sources, no single Block article)
The most consequential crypto bankruptcy of the modern era.
Read on IMPCT (curated commentary + timeline) | Read original (Bloomberg, NYT, and Michael Lewis's book Going Infinite all have strong coverage)
Deven's take. Read at least one in-depth piece about FTX if you have not yet. It is the single most important case study in this space for understanding the difference between a brand and the underlying solvency of an institution. SBF was on every magazine cover, donating to politicians, being interviewed by major media. None of it mattered. The hole in the balance sheet was real, and it was eight billion dollars. The lesson is not "centralized exchanges are evil." The lesson is "centralized exchanges are intermediaries that can fail, and you should size your exposure to any single one accordingly."
5. What is Kraken?, What is OKX?, What is Bybit? by The Block
The next tier of major CEXs.
Read on IMPCT (curated commentary) | Read original Kraken (theblock.co) | Read original OKX (theblock.co) | Read original Bybit (theblock.co)
Deven's take. Useful as reference material. Kraken is a long-running US exchange with a strong reputation among advanced traders. OKX and Bybit are the major non-US derivative-focused exchanges. You probably will not need to use most of them, but knowing they exist and what they specialize in is worth ten minutes. The CEX market is more fragmented than the consumer-facing brand awareness suggests.
Tomorrow
We tie together everything from Day 4 (keys) and today (CEX vs DEX) and look at custody at scale. The full range of custody postures, when to escalate from one to the next, and what professional and institutional users actually do with significant holdings. By the end of tomorrow you will have a coherent answer to "where would I store $X in crypto" for any value of X.
See you in the morning.
Preview reader
You are reading a private preview of IMPCT Institute. If something landed, didn't land, or felt confusing on this lesson, tell us. Short notes are useful. Long notes are useful. No notes are also fine.