Lesson 2 of 7

DEXs and automated market makers

Step 4 of 6

Do it yourself

Small and practical. Do it now while it is fresh.

Time: about 8 minutes. Look only; don't connect a wallet.

  1. Open the Uniswap V2 USDC/WETH pool on Etherscan. Under Token Holdings, note the USDC and WETH balances and the time (ignore the junk tokens).
  2. Work out the pool price and k.
  3. Using the five steps, work out the ETH a $100,000 trade gets, and its cost above the pool price.
  4. Compare your answer with the "10× deeper" row of the table. What do you notice?
Show answer (balances at block 26,455,869, 20 Nov 2026, 11:00 UTC)
  • $99,700 enters. New USDC: 8,598,237.92. ETH kept: k ÷ 8,598,237.92 = 4,795.2384. ETH out: 56.255.
  • Average price 100,000 ÷ 56.255 = $1,777.62, which is 1.48% above the pool price.
  • That equals the $1,000,000 trade in the 10× deeper pool: cost depends on trade size divided by pool size.

Next lesson: Lending, borrowing and liquidations, how DeFi loans are backed by collateral, and what happens to a borrower when prices fall.