Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,088,690
0x7d9A…6aC0
The eight checks
9 pools use this hook, the first one 67 d ago.
- 01caution
Permissions that touch your moneyThe address enables before remove liquidity. The hook is allowed to take; the next two checks measure whether it does.
- 02pass
What it takes from a swapA swap through it pays the pool fee and nothing else.
- 03n/a
LPs can get outClosed to outside LPs: only the hook's own liquidity is in the pool.
- 04caution
The fee is the feeA fixed fee, but a high one: 2.50%.
- 05caution
No one holds the switchNo owner() but it has claim, collectFees, transferProtocolFeeRecipient.
- 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 record9 pools over 67 days.
Measured at block 93,088,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 & 0x3fff0x2ac0 · 10101011000000
- 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.
ETH / SPACEX
fee 2.50%- Swap ETH → SPACEXnothing taken
- Swap SPACEX → ETHnothing taken
- Add, then remove liquiditydeposit refused: OnlyLaunchpadHook
pool 0xb7a61d396dfaf1fe7c0104af6ce9c910c30bb89e46a0614e95a934665305bfdf
ETH / BROKE
fee 2.50%- Swap ETH → BROKEnothing taken
- Swap BROKE → ETHnothing taken
- Add, then remove liquiditydeposit refused: OnlyLaunchpadHook
pool 0x2565351b4de3c89b2cd717212ffccbe38ff9462d3369b012a88dff7e98ac8876
Read from the bytecode
- Code size
- 18,965 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 14
- 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.
- 0xdc98354e beforeInitialize
- 0xe1539d1c clockExpiresAt
- 0xe1b4af69 afterDonate
- 0xe77772fe tokenFactory
- 0xee9e6520 positionLiquidity
- 0xbe00868b hasQualified
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.
0xc4e833ce
getHookPermissions
0xca266dfe poolKey0xd1f05e93 finalizable0xdc4c90d3 poolManager0x9f063efc afterAddLiquidity0xaa8acebe totalOwedToken0xaaef5342 BUILD_TAG0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0x91dd7346 unlockCallback0x92584d80 finalize0x96c144f0 claim0x999b93af quote0x6fe7e6eb afterInitialize0x817db73b collectFees0x84666cfb totalOwedQuote0x8c1cdb4a game0x8fbc81b3 livePot0x575e24b4 beforeSwap0x5e5b644e owedOf0x5f3b29ad transferProtocolFeeRecipient0x64df049e protocolFeeRecipient0x6c2bbe7e afterRemoveLiquidity0x21d0ee70 beforeRemoveLiquidity0x259982e5 beforeAddLiquidity0x25a4e6f4 createGame0x2e127067 poolIdAt0x4d1975b4 gameCount0x01785603 pendingFees0x02fb0c5e active0x0f15f4c0 activate0x16eebd1e launcher