Skip to content

johnwhitton/uhi5-exercises

Repository files navigation

Uniswap v4 Points Hook Tutorial

This repository contains the exercises and the completed solution for the Uniswap Hook Incubator 5. It is based on the contents of the Atrium Academy - Uniswap Hook Incubator Course.

It was created by John Whitton as he worked through the course and is not an official atrium repository.

For documentation automatically generated by DeepWiki please Ask DeepWiki

Additional Development Information

Exercises

The following pages in this repository have been copied from the Atrium Academy Uniswap Hook Incubator course.

Following are a summary of the Exercises

  1. FirstHook.md
  2. DynamicFees.md
  3. LimitOrderHook1.md
  4. LimitOrderHook2.md
  5. JITRebalancing.md
  6. DynamicFeesNezlobinsDirectionalFee.md
  7. CustomCurve.md
  8. MEV.md
  9. CoincidenceOfWants.md
  10. SwapAndBridge.md

Approach

It is recommended that you work through each of the exercises and code the solution. This repository has completed solutions for each of the exercises which can be used for reference.

Further Reading and Resources

Additional references information including useful Uniswap Hook Incubator links, articles and repositories around Liquidity Provisioning, Solving, Arbitrage can be found here

Known Issues

  1. Currently, CICD workflow fails due to environment variables needing to be set up for the CICD pipeline.
Failing tests:
Encountered 1 failing test in test/TestSwapAndBridgeOptimismRouter.t.sol:TestSwapAndBridgeOptimismRouter
[FAIL: environment variable `RPC_SEPOLIA_URL` not found] constructor() (gas: 0)

Usage

Initial Setup

# Clone this repository
git clone https://github.com/johnwhitton/uhi5-project.git

Installation

# Install libraries includeing forge-std and v4-periphery
forge install

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Help

$ forge --help
$ anvil --help
$ cast --help

About

Uniswap Hook Incubator (5) - Points Hook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors