Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,430,418
0x5aE5…68cc
The eight checks
3 pools use this hook, the first one 35 d ago.
- 01caution
Permissions that touch your moneyThe address enables before swap returns delta, 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.
- 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.
- 05caution
No one holds the switchNo owner() but it has updateCreatorPayout.
- 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 record3 pools over 34 days.
Measured at block 93,430,418. 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 & 0x3fff0x28cc · 10100011001100
- 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 / ANALELON
fee 0%- Swap ETH → ANALELONhook takes 1.00%
- Swap ANALELON → ETHhook takes 1%
- Add, then remove liquiditydeposit refused: InitialLiquidityAlreadySeeded
pool 0x553829d5532e9350c32d581a345da9b1a74c999c2a2ea1ea3f394e4704440ce0
ETH / TENESTICLES
fee 0%- Swap ETH → TENESTICLEShook takes 1.00%
- Swap TENESTICLES → ETHhook takes 1%
- Add, then remove liquiditydeposit refused: InitialLiquidityAlreadySeeded
pool 0x9a13c121e028f8808fc7ab6a8d14b75820c6ca2049482757ae4b16067b02ad75
Read from the bytecode
- Code size
- 9,449 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.
- 0x15424b08 INITIAL_TICK
- 0x21d0ee70 beforeRemoveLiquidity
- 0x239f3af7 TICK_UPPER
- 0x249d39e9 BPS
- 0x259982e5 beforeAddLiquidity
- 0x46ca626b TICK_SPACING
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 swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
- After swap. Runs after every swap.
- 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.
0x47377d92
TICK_LOWER
0x478222c2 feeVault0x479dfd7b CREATOR_SHARE_BPS0x4e627e62 referralRegistry0x538a3f0e initializeFactory0x55107d29 registerLaunch0x55d1cb60 poolKey0x575e24b4 beforeSwap0x5e3f2727 LP_FEE0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x7819a57b getLaunchByPoolId0x791b98bc positionManager0x9ce110d7 initializer0x9f063efc afterAddLiquidity0xa0e62eb9 poolIdForToken0xb1ce6ce0 updateCreatorPayout0xb3964f23 getLaunch0xb47b2fb1 afterSwap0xb4ac48ad SEED_HOOK_DATA0xb6a8b0fa beforeDonate0xc45a0155 unknown0xc4e833ce getHookPermissions0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdd4d7bf7 TRADING_FEE_BPS0xdf3225ac REFERRAL_SHARE_BPS0xe1b4af69 afterDonate0xed3b13d6 BOUNTY_SHARE_BPS0xfcfc0c09 GRADUATION_THRESHOLD