The two ways to buy and trade crypto, explained from absolute zero — who holds your money, how a trade really works, and the buttons that bite beginners.
🏦 Centralized
CEX
A company holds your crypto and matches buyers with sellers — a bank with a trading floor. Easy, polished, needs ID. Coinbase, Binance, Kraken.
🔗 Decentralized
DEX
A smart contract lets your own wallet trade directly. You keep control of your coins. No sign-up. Uniswap, PancakeSwap.
SECTION 01
Who Holds Your Money?
The one idea everything else hangs on.
When you trade, someone has to hold the coins for a moment and connect you to a buyer or seller. The big question is who.
AnalogyA CEX is a restaurant — you hand over your money, the staff cooks and serves, smooth but you're trusting them while you're there. A DEX is a farmers' market with a vending machine — you swap machine-to-machine, and your money never leaves your hand until the trade clicks shut.
Custody is the whole difference
CEX = custodial. You deposit coins onto the company's platform; they control the private keys. You see a number, but they hold the assets.
DEX = self-custody. Your coins stay in your wallet; a smart contract trades peer-to-peer, no company ever taking possession.
"Not your keys, not your coins." On a CEX you trust a company. On a DEX you trust code — and yourself.
Going deeper — what "custody" really means under the hood
Custody comes down to one thing: who holds the private key. A private key is a giant secret number that can authorize moving the coins. On a CEX, the company holds that key in its own vaults; your balance is just an IOU in their database — a promise, not the asset itself. That's why an exchange can freeze withdrawals or, if it fails, leave you as an unsecured creditor: you were holding a promise, and the promise broke. On a DEX, the key never leaves your wallet; the smart contract can only ever act on coins you specifically approve, one transaction at a time.
The ten-year-old versionA CEX is the coat check at a party — you get a paper ticket, and the real coat is in the back room with a stranger. Usually you get it back. But if the coat-check kid runs off, all you have is a ticket. A DEX means you just kept your coat on the whole time. Nobody can lose it but you.
This is also why "proof of reserves" became a buzzword after big exchanges collapsed — it's an exchange trying to prove the coats are actually in the back room. And it's why Baron Samedi's first instinct is always to ask who can move this, and can they run — the same custody question, applied to every token and platform.
CEX balance = an IOU — you hold a database entry backed by the company's promise, not the coins themselves.
DEX = key stays home — the contract only touches what you explicitly approve, so no one else can move your funds.
Proof of reserves is a claim, not a guarantee — it shows assets exist, but rarely the full liabilities behind them.
SECTION 02
How a Trade Actually Works
Two very different paths from "I want in" to "done."
CEX: your money rides the company's conveyor belt
🏦 The CEX flow
Verify (KYC) — make an account, prove who you are with ID.
Deposit — send cash or crypto; now the company holds it.
Order — market buys now, limit waits for your price; a matching engine pairs you.
Withdraw — pull funds back to your bank or wallet.
🔗 The DEX flow
Connect wallet — link a self-custody wallet (MetaMask). No account, no email.
Approve — sign a permission so the contract can move that token.
Swap — trade via an AMM (a pool that prices by math, no orderbook).
On-chain — nothing to withdraw; coins were always in your wallet.
Going deeper — the AMM, and why "approve" is its own step
A CEX uses an order book — a live list of buyers and sellers that a matching engine pairs up, the same machinery as a stock exchange. A DEX usually can't do that on-chain cheaply, so it invented something cleverer: the Automated Market Maker. Instead of matching people, an AMM holds two piles of tokens in a pool and prices trades with a formula. You trade against the pool, not another person, and the price adjusts automatically as the piles shift. That's why a DEX can quote you a price for a coin at 3 a.m. with zero sellers online — the math is always open.
The ten-year-old versionAn order book is a school swap-meet: you wait until someone wants exactly what you're trading. An AMM is a magic vending machine already stocked with both snacks — you can always swap one for the other, and the machine quietly raises the price of whatever's running low so it never fully empties.
The step that trips up every beginner is Approve. Before a contract can pull a token from your wallet, you must sign a one-time permission for that specific token. It feels like a pointless extra click, but it's a safety gate — and its dark side is the "unlimited approval," which lets a contract take all of that token forever. A scam contract you approved once can drain you later. Approve deliberately, and prefer limited amounts.
Order book — matches real buyers and sellers; deep and precise, but needs a busy market to work well.
AMM pool — you trade against a formula-priced pile of tokens, so a quote is always available, even with no counterparty online.
Approve is a permission, not a purchase — it's the gate that lets a contract move your token; unlimited approvals are a lasting risk, so keep them tight.
SECTION 03
Liquidity, Pricing & Fees
Why big trades move the price — and where money quietly leaks.
Liquidity means how much is available to trade. A CEX usually has deep liquidity and tight spreads. A DEX prices from a pool using a formula — the classic x × y = k. Buy a lot of one token and you drain it from the pool, so the price climbs the further you go. That growing cost is slippage.
The bigger the trade, the worse the price — slippage grows
Thin pools punish size. One big buy can move price 5–20% against you. Always check the price impact number before confirming.
CEX fees — maker/taker (~0.1–0.5%); card/bank top-ups can cost 1–4%.
DEX fees — a swap fee (e.g. 0.3%) to liquidity providers plus gas for every action, which spikes when the chain is busy.
Gas reality checkOn a busy network, a $10 DEX swap can cost more in gas than the trade is worth. Cheaper chains — or quiet hours — help a lot.
Going deeper — reading x × y = k without the math fear
That famous formula just says: multiply the two piles together and keep the answer constant. If a pool holds ETH and USDC, buying ETH removes ETH from the pool and adds USDC — so to keep the product k unchanged, the price of the remaining ETH must rise. The more you buy, the steeper it climbs. That curve is slippage, and it's why a tiny pool punishes a big trade: you're forced up its price curve. The number the app shows as price impact is literally how far your own order will walk up that hill.
The ten-year-old versionImagine a see-saw with candy on both ends that must always balance. Grab a handful of candy off one side and the see-saw tilts hard — each extra piece you take costs more to lift. A big pile of candy barely tilts; a tiny pile lurches. That tilt is the extra price you pay, and it's bigger when the pile is small.
There's also a hidden cost for the people who supply the pool: impermanent loss. If one token moons after they deposit, the formula quietly rebalances them into more of the loser and less of the winner, so they end up with less than if they'd just held. Understanding this is why Brigitte's swap flow surfaces price impact before you confirm — the goal is never to let the curve surprise you.
Constant product = a price curve — draining a token from the pool forces its price up; small pools have steep curves.
Price impact is your slippage preview — it shows how far your trade climbs the curve; big impact means the pool is too thin for your size.
Impermanent loss — liquidity providers get rebalanced into the underperformer, ending with less than simply holding.
SECTION 04
Risk & Regulation
What can actually go wrong on each side.
🏦 CEX risks
Custody / insolvency — if the company fails or is fraudulent, deposits can vanish (see FTX).
Withdrawal freezes — they can lock you out during chaos.
Counterparty — you depend on their honesty and security.
🔗 DEX risks
Contract exploits — a code flaw can drain a pool.
User error — wrong network/address, or "unlimited approvals" a scam later abuses.
MEV / sandwiching — bots front-run your trade to profit off you.
Bot buys before you → your trade lifts price → bot sells higher
KYC & regulation: a CEX usually requires an ID check (and may restrict some countries) — trading privacy for convenience and legal protection. A DEX usually needs no sign-up to swap, but puts all responsibility on you. Defense: sensible slippage tolerance, trade when the chain is calm, and on big trades use routers with MEV protection.
Going deeper — the mempool, and how the sandwich actually works
Here's the uncomfortable truth about most DEX trades: before it's confirmed, your transaction sits in a public waiting room called the mempool where anyone can see it — including bots. A bot spots your pending buy, pays a higher fee to jump ahead of you (buying first and nudging the price up), lets your trade execute at that worse price, then sells right behind you for a profit. Your order is the meat; the bot's two trades are the bread. This is a flavor of MEV — value extracted purely by controlling the order of transactions in a block.
The ten-year-old versionYou tell the whole cafeteria "I'm about to buy the last cookie." A faster kid hears you, sprints ahead to buy it first, then sells it to you for double — and pockets the difference. The fix isn't to be faster; it's to stop announcing your move to the whole room.
Your slippage setting is directly connected to this: set it too high and you've told the sandwich bot exactly how much room it has to squeeze you. The defenses are practical — a tight, sensible slippage tolerance, trading when the chain is quiet, and using a private router or MEV-protected endpoint that doesn't broadcast your order to the public mempool. On a CEX this whole problem vanishes, because the match happens privately inside the company — one of the real, unglamorous advantages of custody.
The mempool is public — your pending swap is visible to bots before it confirms; that visibility is what enables the attack.
High slippage feeds the sandwich — a loose tolerance hands bots the room to profit; keep it tight to major-token norms.
Private routers help — MEV-protected endpoints keep your order off the public radar, closing the sandwich window.
SECTION 05
Which Is Better? & The Buttons That Bite
It depends — and most pros use both.
🔗 Reach for a DEX when…
You want self-custody & control
You're after brand-new or tiny tokens
You're doing DeFi — lending, LPing, yield
🏦 Reach for a CEX when…
You want a smooth beginner experience
You need deep liquidity for big trades
You're buying with a card / bank, or using stop-losses
The buttons that bite beginners
Slippage tolerance — too low and the trade fails (you may still pay gas); too high and sandwich bots feast. Set it sensibly.
Token approvals — approve only the official router, and prefer limited approvals over "unlimited."
Right chain, right address — the same token name exists on many chains with different contracts. Always verify before trading.
Going deeper — why most pros run a two-venue playbook
The "which is better" question is a trap — experienced traders don't choose, they route. The mental model is simple: a CEX is your on-ramp and vault (move fiat in, park size, use stop-losses, trade deep liquidity), while a DEX is your frontier and self-custody layer (reach brand-new tokens, do DeFi, hold your own keys). Real workflows chain them: buy a major on a CEX, withdraw it to your own wallet, then swap into an early token on a DEX. Each venue does the job it's actually good at, and the risk of each is contained to that leg.
The ten-year-old versionYou keep your allowance in a piggy bank at home (self-custody) but use the corner store to swap dollars for coins (the exchange). You wouldn't leave your whole allowance sitting on the store counter, and you wouldn't try to make change out of a locked piggy bank mid-purchase. Right tool, right moment.
The through-line of this entire lesson is a single habit: always know who holds your keys, and always measure the exit before the entry. Verify the chain and contract address, prefer limited approvals, keep slippage tight, and never park more on an exchange than you'd be willing to lose to a freeze. Get that map straight and you move through crypto with clear eyes — which is exactly the posture Baron and Brigitte are built to reinforce on every trade.
CEX as on-ramp + vault — fiat, deep liquidity, stop-losses; treat it as a service, not a savings account.
DEX as frontier + custody — early tokens, DeFi, your own keys; the price of freedom is total personal responsibility.
One habit rules both — know who holds the keys and measure the exit first; verify chain, address, approvals, and slippage every time.
Get the map straight: a CEX is a company you trust for convenience and liquidity; a DEX is code you trust for control and access. Most traders use both — a CEX to move money in and out, a DEX for self-custody and early tokens. Know who holds your keys, and you move through crypto with clear eyes.