DeFi University
Skip to lesson

Exercise 7

Decentralized Exchanges

About 15 min

Your task

You'll sell into a constant-product pool by hand: take the fee off your input, run the formula, split what you gave up into fee and price impact, and set a minimum received. Then you'll repeat the trade in a pool ten times deeper. By the end you can check any DEX quote yourself and judge whether a pool is deep enough for your trade.

Time
20 to 25 minutes
You'll need
a calculator (or a spreadsheet)
Builds on
Lesson 7

Warm-up

Check yourself

A pool holds 50 ETH and 150,000 USDC. What is its spot price?

Check yourself

In a Uniswap v2-style pool, when is the 0.30% fee taken?

Members only

This course is for members.

The DeFi University membership on Skool opens all 31 courses here, plus the live calls and community. Private coaching clients have access too. Already a member? Sign in with your Skool email.