whatisgithub

What is strata?

mattboss10/strata — explained in plain English

Analysis updated 2026-05-18

0SolidityAudience · developerSetup · moderate

In one sentence

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.

Mindmap

mindmap
  root((Strata))
    What it does
      Uniswap v4 hook
      Dynamic fee goal
      LVR mitigation
    Tech stack
      Solidity
      Foundry
      Uniswap v4
      Anvil
    Use cases
      Custom fee logic
      Local hook testing
      Contract deployment
    Audience
      Solidity developers
      DeFi builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Build a custom trading fee rule that runs automatically on Uniswap v4 swaps

USE CASE 2

Learn how Uniswap v4 hooks work using the included example Counter hook

USE CASE 3

Deploy and test smart contract hooks locally using Foundry and Anvil before going live

USE CASE 4

Study how to manage private keys safely with a local keystore during contract deployment

What is it built with?

SolidityFoundryUniswap v4Anvil

How does it compare?

mattboss10/strataagus-ops/amphiajanaku1/black-box
Stars000
LanguageSoliditySoliditySolidity
Setup difficultymoderatehardhard
Complexity4/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 1h+

Requires installing Foundry and understanding Solidity smart contract deployment.

So what is it?

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.

Copy-paste prompts

Prompt 1
Explain what a Uniswap v4 hook is and how the beforeSwap and afterSwap functions work
Prompt 2
Walk me through installing Foundry and running this project's test suite for the first time
Prompt 3
Show me how to deploy this hook locally on Anvil and then create a pool with liquidity
Prompt 4
Explain what LVR is and how a dynamic fee hook could help reduce it for liquidity providers
Prompt 5
Help me set up a secure keystore for my wallet instead of pasting my private key into a command

Frequently asked questions

What is strata?

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.

What language is strata written in?

Mainly Solidity. The stack also includes Solidity, Foundry, Uniswap v4.

How hard is strata to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is strata for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.