Robinhood Chain hook

Clanker Dynamic Fee Hook (V2)

ListedRobinhood ChainVerified source
0x65efdf8cce99b53c925df878df275df21cb6e8ccBlockscout

A dynamic fee hook for Clanker pools that adjusts LP fees based on realized volatility. It simulates each swap to estimate the post-swap tick, computes a volatility accumulator from tick displacement relative to a reference tick, and calls updateDynamicLPFee with a fee that scales quadratically with volatility, bounded by configurable base and max fee parameters.

7Pools
14Swaps, 7 days
$5Volume, 7 days
60 days agoFirst pool

What it can do to your swap

  • Can take a fee from your outputAfter the pool fills your swap, the hook can keep part of what you were about to receive.
  • Can change the price you getBefore your swap runs, the hook can take or add tokens, so the amount you get is set by its code as well as the pool.
  • Runs code before your swap and can block itThe hook is called before every swap. It can revert, which makes your swap fail.
  • Runs code after your swap and can block itThe hook is called after every swap. It can revert, which undoes your swap.
  • Can block people from adding liquidityCalled before each deposit into the pool.
  • Runs code when a pool is createdCalled once, when someone creates a pool with this hook.
  • Can charge a different fee on each swapThe pool's LP fee is dynamic: the hook sets it, swap by swap.

Read from the hook address: flag bits beforeInitialize, beforeAddLiquidity, beforeSwap, afterSwap, beforeSwapReturnsDelta, afterSwapReturnsDelta. Flags glossary.

Last test swap

A quote for a tiny exact-in swap each way through USDG / CLAN with Uniswap's V4 Quoter, compared with the pool's mid-price minus its 4.26% LP fee. It is an eth_call: nothing is signed or spent. Probed 2 days ago, every hour.

USDG to CLAN-3.06% takenIn 0.000075 USDGOut 4.9451 CLAN, expected 4.79848Gas 186,894
CLAN to USDG-5.63% takenIn 5.06937 CLANOut 0.000075 USDG, expected 0.000071Gas 184,482

Swaps per day

10-20210-21210-22310-23310-24210-25110-261

Volume over the same days: $1, $1, $1, $1, $1, $0, $0. Days end at the snapshot, in UTC.

Pools

PairFeeSwaps 7dVolume 7dCreated
USDG / CLAN
0x1394fa…f861a2
Dynamic8$357 days agoSwap
HOOKR / USDG
0x0e9881…de8f39
Dynamic6$258 days agoSwap
USDG / MANY
0xec46c5…a7f812
Dynamic0$054 days agoSwap
AGI / USDG
0xbdf40f…0d3d64
Dynamic0$055 days agoSwap
USDG / PONSDAQ
0xb7a0a8…032d7d
Dynamic0$057 days agoSwap
USDG / CLAN
0xa3235c…45877b
Dynamic0$057 days agoSwap
USDG / Horst Staley
0x76654f…cafba0
Dynamic0$057 days agoSwap