Your First 90 DaysAcademy
The Protocols · The Machines, One at a Time · Week 4 · Checkpoint 7

The AMM

By the end you will understand how a pot of two tokens and one formula replaced the order book, why the price moves when you trade, and who keeps a robot's price honest.

10 steps~20 min3 nodes for your map
01 · The market with nobody in it

You learned the machine in checkpoint one: instant fills exist because market makers stand in the queues all day, quoting both sides. Now picture a brand new token at 3am. No firm is paid to quote it. The book is empty. Your buy has nothing to meet.

Early DeFi lived in that empty room. Thousands of tokens, and no crowd of makers awake for any of them. The fix was strange and beautiful: replace the queues with a pot and a rule, so that a counterparty is simply always there.

02 · A pot with one rule

Here is the pot. It holds two tokens at once, like a balance scale with a pan for each: some ETH in one pan, some USDC in the other. Anyone can put tokens into one pan and take tokens out of the other. That is a trade.

One rule governs every trade: multiply what sits in the two pans, and that product must never fall. Take ETH out, and you must put enough USDC in to keep the product whole. The rule is the entire machine. Names can wait.

03 · Somebody names a number

In checkpoint one, prices came from queues of humans naming them. This pot has no queues. Yet when you swap against it, you get a precise price, instantly, at 3am. Before we open the machine further, bet on where that number comes from.

A pool holds equal value of two tokens. Who sets the swap price?
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?
ammpoolarbitrage

Three new nodes on your map

amm · pool · arbitrage · +10 Lynx