Zealynx AcademyZealynx Academy
← All free courses

Protocols & testing · Free study companion

Uniswap V3 from Scratch

Follow concentrated liquidity from the mental model to the pool and router. Trace the accounting and explore the security boundaries.

20 Whop lessons · 3 study checkpoints · 5 matching quizzes

Watch the course on Whop ↗
Watch → recall → apply. Use these checkpoints alongside the course. Read the recap, answer the matching quizzes, then attempt the practical task before checking its criteria. Quizzes may appear in more than one course because the same concept applies in different settings. Video links open the original public YouTube lessons; Whop requires its own free sign-in.

Checkpoint 1

Understand the range

A V3 position supplies liquidity within chosen price boundaries. Liquidity outside the current price is inactive for swap-fee earning; it is not automatically liquidated or moved to follow the price. Compare range choices using the same price path before reasoning about returns.

Check your understanding

Practical challenge

Sketch a price path entering and leaving two different ranges. Mark when each position is active.

Check your work

  • Mark both boundaries and the direction of each crossing.
  • Distinguish token exposure from earned fees.

Checkpoint 2

Follow position accounting

Keep liquidity, fee accrual and collected tokens separate. In V3, fees are not automatically compounded into active liquidity. A withdrawal can return both principal and fees, so the full transfer is not newly earned income. Test sequences, not only one balance snapshot.

Check your understanding

Practical challenge

Make a toy ledger for deposit, two swaps, fee collection and withdrawal.

Check your work

  • Separate principal and collected fees.
  • Include an out-of-range interval and explain its fee effect.

Checkpoint 3

Review boundaries and tests

Range boundaries and state-transition order deserve deliberate tests. A clear invariant says what must remain true across swaps, updates and collections. Check edge values and compare implementation behavior with the intended accounting model rather than treating a happy-path result as proof.

Check your understanding

Practical challenge

Write three regression scenarios for a range or fee-accounting change.

Check your work

  • Include both crossing directions.
  • State an expected property and a counterexample for each scenario.

Explain the decision, not just the answer.

After each checkpoint, write one assumption you changed and one test you would add. Bring a sanitized example or a specific question to the free Academy community.

Find your way around the community →