LLMs.txt: agent-readable Markdown index of this site at /llms.txt

StablePair Overview

Understand StablePair, a Uniswap v4 hook that computes LP fees dynamically for pairs expected to trade at the same price.

StablePair is a dynamic fee hook built on Uniswap v4, for pools whose two assets are expected to trade at the same price: USDC/USDT, or WBTC/cbBTC. Rather than charging one static fee, the hook sets the LP fee on every swap from how far the pool price has drifted from a configured reference rate and which direction the swap pushes it.

Inside a narrow band around that reference rate, where the pool sits under normal conditions, both directions pay a small fee, set so that every buy is quoted at one price and every sell at another, before the price impact of the swap itself. Once the price leaves the band the regime changes: swaps pushing it back toward the reference are charged a fee that starts high and decays each block until an arbitrageur takes it, and swaps pushing it further away pay nothing.

StablePair pools cannot be created permissionlessly. Calling PoolManager.initialize against this hook reverts; pools are created only by Uniswap Labs, which sets each pool's fee parameters atomically with creation. See Pool Creation and Configuration.

Concepts

Guides

Repositories

Deployments

See StablePair Deployments for hook addresses and live pool parameters.

Security

See StablePair Security for the trust model, protocol invariants, and audit history.