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

VolatilePair Overview

Understand VolatilePair, a Uniswap v4 hook that sets a separate LP fee for each swap direction on pools of volatile pairs.

VolatilePair is a Uniswap v4 dynamic fee hook for volatile pairs such as ETH/USDC. On every swap, the hook uses a custom algorithm to set swap fees. Both the ask and bid fees are determined by the algorithm.

There are four design goals accomplished by the dynamic fee:

  1. Constant spread in calm blocks. The pool aims to quote a fixed spread.
  2. LPs share backrun value. When a large trade moves the price, fees in the backrun direction are raised to capture a share of backrun value.
  3. Lower LVR. The side that informed flow trades on pays more. The total spread stays the same.
  4. Less sandwiching. The mid-block extra makes the back leg of a sandwich pay more.

Only Uniswap Labs can create VolatilePair pools. Uniswap Labs creates each pool and sets its fee parameters in the same transaction. See Pool Creation and Configuration.

Concepts

Guides

Repositories

Deployments

See VolatilePair Deployments for hook addresses and pool parameters.

Security

See VolatilePair Security for the trust model, invariants, and audit.