Stable & World hooks

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

Repo
Stable & World hooks banner

About

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.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

UniChain Hook

This project enables sybil free cross-chain atomic swaps using Uniswap V4s before and after swap hooks and layer zero's OFT contracts.