Two Uni V4 dynamic fee hooks, for stablecoins pairs, and WorldID verification!
This project implements custom hooks for Uniswap V4, leveraging the new hook system that allows for fee customisation. Built on top of the official v4 hook template and WorldID's verification template, it demonstrates the implementation of dynamic fee when conditions are met: trading towards stablecoin's price (1), or passing the verification of WordID.
On the Uniswap V4 hook and StablePairHook side, fee reduction is activated when the swaps are swapping towards stablecoins' supposed price 1. On the WorldID hook side, fee reduction is activated when a user has passed the verification. Foundry test suite is used for tests and deployment scripts. Contract deployments on WorldChain can be found in README.md.