PriceImpactDynamicFeeHook
EthereumRegisteredA 2-state dynamic fee hook pinned to a single pool. In the DOWN state, non-owner swaps pay a base LP fee (default 2%); if a swap moves the sqrtPrice beyond a configurable threshold, the crank flips ON and subsequent non-owner swaps pay a fee cap (default 10%). Fee is applied as a beforeSwap LP fee override; the owner (tx.origin) pays 0% and can reset the crank via hookData.
ALooks safeRegistered, verified, immutable
Pools
1
Dynamic-fee pools
1
Last new pool
4mo
Code size
6,958 B
What it can do
Runs code on every swap
Its code executes inside each trade in pools that use it.
Sets its own swap fee
Pools using it let the hook choose the swap fee instead of a fixed tier.
Runs at pool creation
It runs when a pool is created, often to lock in that pool’s settings.