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?
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