Build a custom trading fee rule that runs automatically on Uniswap v4 swaps
Learn how Uniswap v4 hooks work using the included example Counter hook
Deploy and test smart contract hooks locally using Foundry and Anvil before going live
Study how to manage private keys safely with a local keystore during contract deployment
| mattboss10/strata | agus-ops/amphi | ajanaku1/black-box | |
|---|---|---|---|
| Stars | 0 | 0 | 0 |
| Language | Solidity | Solidity | Solidity |
| Setup difficulty | moderate | hard | hard |
| Complexity | — | 4/5 | 4/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires installing Foundry and understanding Solidity smart contract deployment.
This repository's stated purpose is a signal driven, dynamic fee add on for Uniswap v4, meant to reduce a type of loss that liquidity providers face called LVR. However, the README itself has not yet been rewritten from the default starting template, so what it currently documents is the general purpose starter kit for building Uniswap v4 hooks, not the specific fee logic described in the project's short description. Uniswap v4 hooks are small pieces of code that plug into a Uniswap trading pool and run automatically before or after actions like a swap, letting a developer add custom logic such as adjusting fees. The template includes an example hook called Counter, a matching test file, and a preconfigured local testing setup built on a tool called Foundry. To get started, a developer installs Foundry, runs the project's dependency installer, and runs its test suite. The template supports deploying and testing hooks on a local blockchain simulator called Anvil, either fully local or forked from a real network, using scripts for deploying the hook, creating a trading pool, adding liquidity, and swapping tokens. It also documents how to safely handle a wallet's private key using a local keystore instead of pasting it into commands, and how to verify a deployed contract on a block explorer. The README includes a troubleshooting section covering common setup problems, such as GitHub permission errors when installing dependencies, contract size limits during local testing, and mismatched settings that cause a hook to fail to deploy. No license is stated for this specific repository.
A Uniswap v4 hook project intended to add a dynamic trading fee that reduces liquidity provider losses, currently still using the generic starter template's README.
Mainly Solidity. The stack also includes Solidity, Foundry, Uniswap v4.
Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.