Index / Dynamic fees
Dynamic fees Uniswap v4 hooks
Fees that move with volatility, volume, or loyalty. Licensed Solidity excerpts with a link to the full source file.
AntiSnipe
Launch guard — max buy (% supply), snipe tax on exact-input buys for N blocks after init.
BaseDynamicFee
Set the pool LP fee afterInitialize, then poke updateDynamicLPFee when conditions change.
Clanker
Dynamic-fee launch hook: beforeSwap sets fee, claims, runs an MEV module, then takes protocol delta.
FeeRouter
afterSwap skims protocolBps of output to an immutable treasury address.
MevWindow
Elevated swap fee and blocked add-liquidity for mevBlocks after pool init.
SlippageFeeHook
Simulate the swap, measure the tick it would move, then price the fee off that slippage.
SniperTax
Launch LP fee decays linearly from startFee to baseFee over duration seconds.
SuckerPunch
Free ETH-pair buys, hold-time sell fee decay, same-block sell taxed as MEV.
Super DCA
Dynamic LP fee in beforeSwap from who is swapping; pool must include the DCA token.
SurgeFee
LP fee scales with swap size vs pool liquidity — no simulate-and-revert.
Volatility oracle
Require a dynamic fee on initialize, then ramp LP fee by elapsed time after deploy.
VolatilityFee
LP fee rises with |currentTick − lastTick| since the previous swap.
Volume tier
Cumulative swap notional unlocks lower dynamic fees for high-volume traders.
Zora Coin Hook
Creator coin hook: launch fee decay, LP positions on init, fee swap + reward distribution.