Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,890,808
0x2c66…2aCC
The eight checks
1721 pools use this hook, the first one 19 d ago.
- 01caution
Permissions that touch your moneyThe address enables before remove liquidity, before swap returns delta, after swap returns delta. The hook is allowed to take; the next two checks measure whether it does.
- 02pass
What it takes from a swapIt takes 1.00% on top of the pool fee.
- 03n/a
LPs can get outClosed to outside LPs: only the hook's own liquidity is in the pool.
- 04pass
The fee is the feeA fixed fee of 0%, written in the pool key.
- 05caution
No one holds the switchNo owner() but it has BURN_ADDRESS, withdraw, blockSource, settle, blockNumber, setFactory.
- 06pass
The code cannot changeNot a proxy, no DELEGATECALL, no SELFDESTRUCT.
- 07pass
Only the PoolManager can call itEach callback refused a call that did not come from the PoolManager.
- 08pass
Track record1721 pools over 19 days.
Measured at block 92,890,808. A hook with an owner or a dynamic fee can behave differently later; scan again before a large trade.
What the address allows
A v4 hook's permissions are the last fourteen bits of its address. The PoolManager calls only what they switch on.
address & 0x3fff0x2acc · 10101011001100
- bit 13Before initialize
- bit 12After initialize
- bit 11Before add liquidity
- bit 10After add liquidity
- bit 9Before remove liquidity
- bit 8After remove liquidity
- bit 7Before swap
- bit 6After swap
- bit 5Before donate
What it did to a real swap
A small swap each way and a liquidity round trip, run through the PoolManager and this hook inside a call that is never sent. The pool fee is expected; anything else missing is the hook.
WETH / WABI
fee 0%- Swap WETH → WABIhook takes 1.00%
- Swap WABI → WETHno liquidity above the price
- Add, then remove liquiditydeposit refused: error 0x8868ed63
pool 0x561a200b313f53b3c594a9f874791241678f18b191eaa0ca9f3e5299ede2629f
WETH / JURTLE
fee 0%- Swap WETH → JURTLEhook takes 1.00%
- Swap JURTLE → WETHno liquidity above the price
- Add, then remove liquiditydeposit refused: error 0x8868ed63
pool 0xfd2e6b31267ef4414b16fc39c4923f34205fe24205f586756b09dd651f3d817f
Read from the bytecode
- Code size
- 23,315 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 9
- Callbacks open to anyone
- none
Its functions, uncensored
Selectors found in the dispatcher, named from the public signature database. Red ones are what an owner usually keeps for itself.
- 0xdfcfe04a unknown
- 0xf11b5ff3 unknown
- 0xf6c00927 getPool
- 0xfccc2813 BURN_ADDRESS
- 0xdc4c90d3 poolManager
- 0xdc98354e beforeInitialize
- 0xdd1b9c4a POOL_FEE
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- Before initialize. Runs once, when a pool is created.
- Before add liquidity. Can refuse a deposit, or only let some addresses provide liquidity.
- Before remove liquidity. Can refuse a withdrawal. LPs may not get out.
- Before swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
- After swap. Runs after every swap.
- Before swap returns delta. Can take part of what you put into a swap, or change how much is swapped.
- After swap returns delta. Can take part of what you get out of every swap.
0xd49a7e48
unknown
0xd526093d unknown0xd5f39488 deployer0xd9894017 withdraw0xc6ca6be4 unknown0xcf7de62c distributorOf0xd25a8d08 unknown0xbd8e62d6 ARB_SYS0xbf5a5940 baseFeeBps0xc45a0155 unknown0xc555f2a9 unknown0xb47b2fb1 afterSwap0xb70775d4 unknown0xb7d2a274 blockSource0x987757dd settle0x99b6acb1 unknown0xaf39c9c8 unknown0xb09e1b1f distributorImplementation0x8f5a26ae MAX_BASE_FEE_BPS0x91dd7346 unlockCallback0x92bedbf7 unknown0x7aa53ab3 unknown0x7ec8d58d MAX_SNIPE_EXEMPT0x861fbe84 acceptCreator0x8c0017fb unknown0x642ddf3a authorizeMint0x6492d4b2 unknown0x791b98bc positionManager0x57e871e7 blockNumber0x5bb47808 setFactory0x60794c54 pendingOf0x61e512f6 pendingCreator0x46ca626b TICK_SPACING0x52907e5f unknown0x575e24b4 beforeSwap0x2a1dec3e grossOf0x348d41e3 MAX_SNIPE_START_BPS0x3ded483f unknown0x4640ee68 unknown0x2560de12 unknown0x259982e5 beforeAddLiquidity0x264e97e0 isTrustedRouter0x21d0ee70 beforeRemoveLiquidity0x22dd4e92 unknown0x244c2a58 MAX_WINDOW_BLOCKS0x02ce01fb transferCreator0x106fb7b0 maxSecondsPerBlock