Fintech Blockchain and Cryptocurrency

In-class lab · 62 minutes

Session 8 — The lemonade AMM (in-class lab)

In one sentence. x \times y = k. Seed your bowl. A classmate not on your team must swap.

WhenWeek 4, second meeting · 62 minutes
Open in classnotebooks/sessions/S08_amm_lemonade.ipynbGitHub
If you missed classHandbook → Session 8
Graded labL2 — Trade the class bowl · notebook notebooks/labs/L2_amm.ipynb
TonightA4 + L2 due end of Week 4.

You will (in class)

  1. Run the Quiz 2 Demo; fill L2 / IL; see trader reverse vs LP gap.
  2. Type your A4 piles (or a labeled example — do not invent a live quote).
  3. Seed the team pool; get one external swap.

After class

Run All on L2. Paste your A4 piles into Q5, not the 200/100 demo.

You will not

  • treat spot and average as the same
  • charge fees in the class bowl (there are none)