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
0xA71B…C0c4
The eight checks
7 pools use this hook, the first one 103 d ago.
- 01caution
Permissions that touch your moneyThe address enables 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% on top of the pool fee.
- 03pass
LPs can get outLiquidity added and removed in the same block came back whole.
- 04pass
The fee is the feeA fixed fee of 0.30%, written in the pool key.
- 05caution
No one holds the switchNo owner() but it has setCreatorShareBps, claim, grantRole, unpause, upgradeToAndCall, paused.
- 06fail
The code cannot changeIt is a proxy. The code that runs lives at 0x7598D14A00698489aF3a40b895510dbE69022135.
- 07pass
Only the PoolManager can call itEach callback refused a call that did not come from the PoolManager.
- 08pass
Track record7 pools over 103 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 & 0x3fff0x00c4 · 00000011000100
- 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 / HOSTEST6
fee 0.30%- Swap WETH → HOSTEST6hook takes 1%
- Swap HOSTEST6 → WETHhook takes 1%
- Add, then remove liquiditycame back whole
pool 0xa11c684ed34c5dfab978c59240ee4974aa925b5d752d59c922f260ce34da96a8
Read from the bytecode
- Code size
- 9,533 bytes
- Owner
- none found
- Proxy
- yes, code at 0x7598D14A00698489aF3a40b895510dbE69022135
- DELEGATECALL
- present
- SELFDESTRUCT
- absent
- Outside calls
- 5
- 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.
- 0x01ffc9a7 supportsInterface
- 0x05160b89 setCreatorShareBps
- 0x0885f732 poolConfig
- 0x196fb0d6 configurePool
- 0x1a07d99f hasValidHookFlags
- 0x1e83409a claim
- 0x1f3d3177
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- 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.
sniperDuration
0x21d0ee70 beforeRemoveLiquidity0x248a9ca3 getRoleAdmin0x24ea54f4 GUARDIAN_ROLE0x259982e5 beforeAddLiquidity0x2f2ff15d grantRole0x31731bb9 poolFeesCollected0x36568abe renounceRole0x39092a8c reconfigurePool0x3f4ba83a unpause0x4f1ef286 upgradeToAndCall0x52d1902d proxiableUUID0x575e24b4 beforeSwap0x5c975abb paused0x60c6d8ae totalFeesCollected0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x7aab2f69 MAX_CREATOR_SHARE_BPS0x8456cb59 pause0x91d14854 hasRole0x98cc1cd1 setSniperDuration0x9f063efc afterAddLiquidity0xa217fddf DEFAULT_ADMIN_ROLE0xad3cb1cc UPGRADE_INTERFACE_VERSION0xb1a25c94 creatorShareBps0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xbac2f078 MAX_SNIPER_DURATION0xbe07363f DEFAULT_SNIPER_DURATION0xbf1d14cd setTotalFeeBps0xc0c53b8b initialize0xc267ada4 setFeeRouter0xc4e833ce getHookPermissions0xc56f84cf totalFeeBps0xc807ad65 createPoolAndConfigure0xd547741f revokeRole0xd55be8c6 MAX_FEE_BPS0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe1b4af69 afterDonate0xf29ebf61 feeRouter0xf72c0d8b UPGRADER_ROLE0xfad17eb6 accrued0xfc884c1b setPoolBypass