Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,239,595
0x18Cf…4040
The eight checks
5 pools use this hook, the first one 79 d ago.
- 01pass
Permissions that touch your moneyNone of the permissions that let a hook take from swaps or from LPs are switched on.
- 02pass
What it takes from a swapA swap through it pays the pool fee and nothing else.
- 03pass
LPs can get outLiquidity added and removed in the same block came back whole.
- 04pass
The fee is the feeA fixed fee of 1%, written in the pool key.
- 05caution
No one holds the switchOwned by 0xd03543d97B1725D6c9df6b1f90FEDBF446Cd1418. Owner-style functions: setModuleFactories, transferOwnership.
- 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 record5 pools over 78 days.
Measured at block 93,239,595. 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 & 0x3fff0x0040 · 00000001000000
- 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 / UNIHOOK
fee 1%- Swap SPY → UNIHOOKnothing taken
- Swap UNIHOOK → SPYnothing taken
- Add, then remove liquiditycame back whole
pool 0x088b9899c98638e89cd0dc4a31845467329f99dbb7f2dd09b79ce84f4f7402e4
USO / USO
fee 1%- Swap USO → USOnothing taken
- Swap USO → USOnothing taken
- Add, then remove liquiditycame back whole
pool 0x876ebe4a389d9f06179f0c5680febff6d126ee39039273e4f23b1ece0fa51a8a
Read from the bytecode
- Code size
- 11,604 bytes
- Owner
- 0xd03543d97B1725D6c9df6b1f90FEDBF446Cd1418
- Proxy
- no
- 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.
- 0xe5f0ae20 setModuleFactories
- 0xef3dc46f wethModuleFactory
- 0xf2fde38b transferOwnership
- 0xf6b76e1b MAX_LEVEL_HP_BONUS_BPS
- 0xdfba3694 RAID_DURATION
- 0xe1a45218 BPS_DENOMINATOR
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- After swap. Runs after every swap.
0xe1b4af69
afterDonate
0xe30c3978 pendingOwner0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xdc4c90d3 poolManager0xdc98354e beforeInitialize0x80f8952d raidVault0x8da5cb5b owner0x9f063efc afterAddLiquidity0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x79ba5097 acceptOwnership0x7ecfb18a LEVEL_HP_STEP_BPS0x575e24b4 beforeSwap0x5a38d80f victoryNonce0x5d1b15cb raidState0x6c2bbe7e afterRemoveLiquidity0x266e274b NEXT_HP_VOLUME_BPS0x3bd909fd stockModuleFactory0x4134fef3 registerPool0x4c0a8da9 isRaging0x0885f732 poolConfig0x21d0ee70 beforeRemoveLiquidity0x259982e5 beforeAddLiquidity