Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,085,690
0x7874…AaeC
The eight checks
10 pools use this hook, the first one 11 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.
- 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.
- 04pass
The fee is the feeA fixed fee of 0%, written in the pool key.
- 05pass
No one holds the switchNo owner and no admin functions found.
- 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 record10 pools over 11 days.
Measured at block 93,085,690. 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 & 0x3fff0x2aec · 10101011101100
- 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.
CORDON / HODOLL
fee 0%- Swap CORDON → HODOLLno liquidity at the current price
- Swap HODOLL → CORDONno liquidity at the current price
- Add, then remove liquiditydeposit refused: OnlyLocker
pool 0x2911fc0ccce8aee7311adf2386b1dbf0bbae99878a5a3f7bd844962ab16803ff
Read from the bytecode
- Code size
- 14,294 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 3
- 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.
- 0x0615f758 SCORE_COARSE_SLOTS
- 0x08b66372 HOOK_FLAGS
- 0x09c70e6b OBS_CARDINALITY
- 0x0c2dafd0 slowObservationCount
- 0x117fb200 coarseCheckpoint
- 0x1dc614dd endCheckpoint
- 0x21d0ee70
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 donate. Runs before a donation to LPs.
- 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.
beforeRemoveLiquidity
0x2400a298 successorUnresolvable0x259982e5 beforeAddLiquidity0x2a1cc44d trailingAverage0x2ed9666f observationCount0x3945dbde roundManager0x3b4f9b7c SLOW_OBS_CARDINALITY0x3eeccefe SNIPE_END_PPM0x41a20a93 PROTOCOL_FEE_PPM0x47473b00 consult0x478222c2 feeVault0x575e24b4 beforeSwap0x58ec7bfc MAX_HOP_FEE_PPM0x5a6fa098 successorRouter0x5f66727d OBS_MIN_SPACING0x648b76c3 consultSlow0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x70f4aa67 scoreState0x7570d3cc SLOW_OBS_MIN_SPACING0x88b4b21d registerPool0x8cebd942 poolInfo0x98f60e45 SCORE_RING_S0x9f063efc afterAddLiquidity0xac645b2d scoreCheckpoint0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xbe31a8ec DEFAULT_SCORE_SLOT_S0xc45a0155 unknown0xc7daebf3 averageOver0xcece275d SCORE_SLOT_S0xceda34ed SNIPE_START_PPM0xd7b96d4e locker0xdbc8cb55 SNIPE_S0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe1b4af69 afterDonate0xe3340adb hopFeePpm0xe7ebdc3f unknown0xea509a64 registeredPools0xf2ac4cf5 SCORE_SLOTS0xf887ea40 router0xfa86b8d0 unknown