finds.dev← search

// the find

Jeiwan/uniswapv3-book

★ 763 · JavaScript · updated May 2024

Uniswap V3 Development Book

A book that walks you through building a Uniswap V3 clone from scratch in Solidity, milestone by milestone. It covers the full AMM implementation: concentrated liquidity, tick math, multi-hop swaps, flash loans, fee accounting, and NFT positions. Written for developers who want to understand how Uniswap V3 actually works under the hood, not just call its contracts.

The milestone structure is genuinely well-designed — each milestone ships a working thing, not just a chapter of theory. Covers the hard parts other tutorials skip: fixed-point arithmetic in Solidity, tick bitmap indexing, and the cross-tick swap loop. Uses Foundry for testing, which is the right call for this kind of low-level contract work. The companion code repo is separate, so you can follow the book without getting lost in diffs.

Last pushed May 2024 — Uniswap V4 is out and this is already one major version behind, which matters if you're trying to understand current DeFi infrastructure. The JavaScript label is misleading; the actual content is Solidity and the JS is just the frontend gloss. Intentionally introduces bugs as a pedagogical choice, which is fine, but the 'don't deploy this' warning is easy to miss for someone skimming. No coverage of MEV, sandwich attacks beyond a diagram, or how real liquidity providers think about position management.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →