Overview
Introduction
Welcome to AMM 101. By the end of this session, you will have built and deployed your own Automated Market Maker (AMM).
What We'll Build
We are going to build a minimal but complete constant-product AMM that follows the classic x * y = k formula. This is the same invariant that powers Uniswap V2.
The project is split into three bite-sized modules:
- Environment Setup, Pick your tools: Remix IDE in the browser, or Foundry on your local machine.
- ERC20 Token, Write and deploy two custom ERC20 tokens. These will be the trading pair for our AMM.
- AMM Pool, Code a pool contract that accepts the two tokens, maintains the invariant, and allows swaps.