Your First 90 DaysAcademy
Act II · The Machinery · Week 7 · Checkpoint 13

CEX vs DEX

By the end of this you will know exactly what happens to your money inside a company exchange versus a DEX, why withdrawal is the moment of truth, and when each one is the right tool.

11 steps~23 min3 nodes for your map
01 · Two ways to trade, two very different insides

In Act 1 you learned the marketplaces exist. You buy and sell on them every day without a thought for what happens underneath. Now we lift the lid on both.

There are two shapes. One is a company that holds your coins and runs trades behind its own counter. The other never touches your coins at all. They feel almost identical from the outside, and they are nothing alike inside. That difference is the whole lesson.

02 · Inside the company: a border crossing

Picture the company exchange as a border crossing. When you deposit, your coins cross from the open chain into the company's country. Once inside, every trade you make is just the company editing its own internal table: it subtracts here, adds there, in its private books. Nothing goes on-chain.

That is why trading inside feels instant, costs almost nothing, and can be undone by support if you fat-finger it. You are not moving real coins around. You are moving numbers in a company spreadsheet. The chain only reappears at the two border posts: the deposit in, and the withdrawal out.

03 · Withdrawal is the moment of truth

Hold this one idea, because it powers everything that follows. While you trade inside the border, your balance is a number the company shows you. It is a promise: we are holding real coins that match this figure. As long as you never leave, the promise is never tested.

Withdrawal is the single moment the company must turn that number back into real coins and send them across the border to you. It is the only time the promise has to come true. So if you ever want to know whether an exchange truly has your money, watch what happens at withdrawal. Everything inside is bookkeeping. Only the exit is proof.

04 · Inside a DEX: the vending row, no counter

Now the other shape. A DEX has no company, no counter, no internal table. It is a row of the vending machines from checkpoint 3, standing in the open. When you swap, there is no border to cross because your coins never leave your control until the moment of the trade itself.

Put together what you already know: the pool formula from checkpoint 3, run by the smart contracts from checkpoint 12, triggered by your key from checkpoint 10. You ask to swap, your wallet signs, the contract executes the trade against the pool on-chain, and the new coins arrive in your wallet. No company ever held them. There was no promise to keep, because there was nothing to promise.

05 · The honest trade-off, side by side

Here are both blueprints on one board. The company exchange gives you speed, cheap trades, a reset button when you make a mistake, and the easiest way to turn real dollars into crypto and back. In exchange, it holds your coins, so you are trusting it to stay solvent and to let you withdraw when you ask.

The DEX hands all of that control back to you. You keep your coins, you can trade any token that has a pool, and no company can freeze you. The price is that every swap is a real on-chain transaction with gas, prices can move against you as you trade, and there is no support line if something goes wrong. Use the comparison to feel the shape of the trade before we test it.

A friend asks why trading on a company exchange feels instant and free, while a DEX swap costs a gas fee every time. What is the real reason?
06 · The half-answer to the withdrawal question

After enough exchanges failed, the industry looked for a way to show customers the coins really exist. The idea is simple: the exchange publishes evidence that it holds a pile of real coins on-chain, which anyone can go and check. Described plainly, it is a snapshot of what the company owns. Named, it is called proof of reserves.

It is genuinely useful, and it is only half the picture. Test what it actually tells you.

An exchange publishes a proof of reserves showing a large pile of coins on-chain. What has it actually proven, and what has it not?
07 · The exit closes during a storm

Markets are crashing. Everyone is rushing for the door at once. You open your exchange app to move your coins to safety and you see a calm banner: withdrawals are temporarily paused for routine maintenance. Inside, your balance still shows the same number. Trading even still works.

You are not helpless here, and you are not certain of disaster either. You have the model. Run it before you panic or relax.

Scenario
An exchange pauses withdrawals during a market panic, while your balance still shows full. What does the internal-table model tell you, and what can you actually do?
08 · When the table lied

This is not hypothetical. In 2022 one of the largest exchanges in the world, FTX, collapsed almost overnight. For its customers the screens looked normal right up to the end: balances showed full, trades worked, the internal table said everyone's coins were present and accounted for.

Behind that table the coins had quietly been moved and spent elsewhere. The promise was hollow, and the moment of truth came exactly where you now expect it: at withdrawal, when too many people tried to take real coins out at once and there were not enough to go around. The lesson is not that every exchange is FTX. It is that the balance you see is a promise, and the only thing that ever tests a promise is the exit.

09 · So the DEX is just safer, right?

It is tempting to walk away thinking the DEX simply won. No company to fail you, no table to lie, no exit to pause. All of that is true, and it is only one side of the board.

Removing the company removes the company's failures, and it hands every other risk straight to you. Lose your key and no one resets it. Buy a token that copied a famous name into a brand-new pool and no listing desk caught it for you. Watch the price slide as a big trade fills ahead of yours, with no clerk to warn you. Same key, same finality you learned in checkpoint 10. Push-test the comfortable conclusion.

Limit test
Your friend concludes: "A DEX has no company that can fail, so a DEX is always the safer place for a beginner." Where is he overreaching?
10 · Picking the right tool, on purpose

Put the whole lesson to work. There is no single winner, only a fit. When you need to turn real dollars into crypto or back, the company exchange is the natural bridge, and the speed and reset button are real conveniences. When you want full control and access to any token with a pool, and you are ready to hold your own key, the DEX is the tool that gives it to you.

Underneath every choice sits one honest question, the same one from checkpoint 10: whose failures are you willing to own? The company's, when you let it hold your coins, or your own, when you hold them yourself. Both are legitimate. Most people end up using both, on purpose, for different jobs.

11 · One chain was a simplification

So that is both marketplaces, blueprints open. The company exchange is a border crossing where your trades just edit an internal table, and withdrawal is the only moment its promise is tested, the exact place FTX came apart. The DEX is the vending row from checkpoint 3, every swap a real on-chain trade you sign yourself, safer from the company and more exposed to your own mistakes. You can now match each one to the job and to whose failures you can live with.

But every machine in this act has quietly assumed one thing: a single chain, one ledger, one world. That is not how it really looks. There are many chains, layers built on top of other layers, and ferries that carry value between them. The shape of that world explains where some of the worst accidents in crypto happen.

Next we open the multichain architecture: why so many chains exist, what a layer on top actually does, and why the ferries between them hold the worst safety record of all.

your balance2,400
BANK_DBowner: the bank
you2,400
what the app is actually showing you
BANK_DBowner: the bank
you2,400their pen
you hold a claim. they hold the pen.
your digital life
BANK · you2,400the bank ✍
INSTAGRAM · you2.1M followersMeta ✍
STEAM · you134 gamesValve ✍
AIRLINE · you58,200 milesthe airline ✍
four tables. zero pens that are yours.
BANK_DBowner: the bank
you2,400
DENIED
try both pens
PLATFORM_DBowner: the platform
her · 8 years2,000,000 followers
one automated decision away
BANK_DB · you · 2,400intentcompetencecontinuity
your row stands on all three
FTX_DBowner: FTX
you5 BTC
the backing vault●●●●●
the row stayed. the backing did not.
CARD_DBowner: your bank ✍
TV you never bought−1,100
fraud reversal+1,100
someone holds the pen, so someone can fix it
?_DBowner: nobody
youstill yours?
?
can a table exist that nobody owns?
?
?_DBowner: ̶n̶o̶b̶o̶d̶y̶
you100
no owner, no pen, no trust?
keeper 1
you100
keeper 2
you100
keeper 3
you100
keeper 4
you100
keeper 5
you100
no THE copy, only copies.
keeper 2
you100
keeper 3
you100
keeper 4
you100
keeper 5
you100
your copy
you100
five copies. one of them is yours.
one attacker
one attacker, ten thousand faces.
real machinesburned wattsnext page, sealed
writing costs watts. faking voters buys nothing.
cost paid OUTSIDE: hardware and power
proof of work, burn energy to vote.
page 1you · 100page 2you · 100page 3you · 100page 4you · 100
rewrite one line, break every lock after it.
office lunchtrusted keeperconsensusfive keepers, real cost
the price buys trustlessness. the office already has trust.
?
ownerless ledger
you?
a key, not a login?
nobody owns the table. so who owns your row?
cexdexcustody

Three new nodes on your map

cex · dex · custody · +10 Lynx