Uniswap V3 Built From Scratch

A Uniswap V3 clone built from scratch for educational purposes. Part of free and open-source Uniswap V3 Development Book.

Front-end application screenshot

How to Run

  1. Ensure you have Foundry installed.
  2. Run Anvil:
    $ anvil
  3. Set environment variables and deploy contracts:
    $ source .envrc
    $ make deploy
  4. Start the UI:
    $ cd ui && yarn start
  5. In Metamask, import this private key and connect to localhost:8545:
    0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
    
  6. Enjoy!