project screenshot 1
project screenshot 2
project screenshot 3

Stable & World hooks

Two Uni V4 dynamic fee hooks, for stablecoins pairs, and WorldID verification!

Stable & World hooks

Created At

ETHGlobal Taipei

Project Description

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.

How it's Made

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.

background image mobile

Join the mailing list

Get the latest news and updates