Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,114,327
0x87bd…A5c7
The eight checks
7 pools use this hook, the first one 44 d ago.
- 01caution
Permissions that touch your moneyThe address enables after swap returns delta, after add returns delta, after remove returns delta. The hook is allowed to take; the next two checks measure whether it does.
- 02n/a
What it takes from a swapNo pool with liquidity to swap through yet.
- 03n/a
LPs can get outClosed to outside LPs: only the hook's own liquidity is in the pool.
- 04caution
The fee is the feeIts pools use a dynamic fee that the hook sets before every swap. It stands at 0% now and can change.
- 05caution
No one holds the switchNo owner() but it has setPaused, upgradeTo, paused, transferAdmin, setBlacklistedBatch, setFeeOperator.
- 06fail
The code cannot changeIt is a proxy. The code that runs lives at 0x5bB008712B5565650126ae813C9d0072bC14303D.
- 07pass
Only the PoolManager can call itEach callback refused a call that did not come from the PoolManager.
- 08pass
Track record7 pools over 43 days.
Measured at block 93,114,327. 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 & 0x3fff0x25c7 · 10010111000111
- 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.
SPY / USDG
fee dynamic, now 0%- Swap SPY → USDGno liquidity at the current price
- Swap USDG → SPYno liquidity at the current price
- Add, then remove liquiditydeposit refused: error 0x1dea8645
pool 0xcae42cd026c3fed9b53ec4114a43429d7ac60e62f34aea6ea627ba536f565ff3
Read from the bytecode
- Code size
- 11,870 bytes
- Owner
- none found
- Proxy
- yes, code at 0x5bB008712B5565650126ae813C9d0072bC14303D
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 0
- 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.
- 0x0103a892 unknown
- 0x0fccca7b feeOperator
- 0x158ef93e initialized
- 0x16c38b3c setPaused
- 0x2993efc2 unknown
- 0x2e42b9e1 unknown
- 0x3659cfe6 upgradeTo
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.
- After add liquidity. Runs after each deposit.
- After remove liquidity. Runs after each withdrawal.
- Before swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
- After swap. Runs after every swap.
- After swap returns delta. Can take part of what you get out of every swap.
- After add returns delta. Can charge LPs on the way in.
- After remove returns delta. Can take part of what LPs withdraw.
0x403ebd03
storageVersion
0x46904840 feeRecipient0x4c4a3c25 stateView0x52d1902d proxiableUUID0x575e24b4 beforeSwap0x5c975abb paused0x6782074c unknown0x6c2bbe7e afterRemoveLiquidity0x75829def transferAdmin0x7799b8a0 setBlacklistedBatch0x791b98bc positionManager0x7e50dc0a unknown0x8736f3e3 unknown0x963a9c8e unknown0x9789ae80 isPoolRegistered0x9b3b545f unknown0x9ca1b6d1 setFeeOperator0x9ef2b381 STORAGE_VERSION0x9f063efc afterAddLiquidity0xb47b2fb1 afterSwap0xb980d9b2 unknown0xc35b8d79 unknown0xc4e833ce getHookPermissions0xca266dfe poolKey0xcb3b3ab3 setGasThreshold0xd01dd6d2 setBlacklisted0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe74b981b setFeeRecipient0xeb44a5fc unknown0xef6c379d unknown0xf851a440 admin0xfe575a87 isBlacklisted