Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,061,982
0x0B20…28CC
The eight checks
10 pools use this hook, the first one 66 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.
- 02fail
What it takes from a swapOne direction works and the other is refused (InvalidSwapDelta). You may be able to buy and not sell.
- 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 freezeUpgrades, transferUpgradeAuthority, upgradeToAndCall, upgradesFrozen, UPGRADE_INTERFACE_VERSION, updateCreatorPayout.
- 06fail
The code cannot changeIt is a proxy. The code that runs lives at 0xc897570c27AF50603A08490C8621e3d0EFfa4b27.
- 07pass
Only the PoolManager can call itEach callback refused a call that did not come from the PoolManager.
- 08pass
Track record10 pools over 65 days.
Measured at block 93,061,982. 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 / DADDY
fee 0%- Swap ETH → DADDYhook takes 1.00%
- Swap DADDY → ETHhook takes 1%
- Add, then remove liquiditydeposit refused: InitialLiquidityAlreadySeeded
pool 0x641a1362578e42b70a158a33360a2abc46a3a6bd005e428e49aa24e707320324
ETH / EPH
fee 0%- Swap ETH → EPHhook takes 1.00%
- Swap EPH → ETHrefused: InvalidSwapDelta
- Add, then remove liquiditydeposit refused: InitialLiquidityAlreadySeeded
pool 0x59b7a5d14d0d942b84795216ce8024145d4788a0c058ca0a2423fc8cbf1626b3
Read from the bytecode
- Code size
- 12,657 bytes
- Owner
- none found
- Proxy
- yes, code at 0xc897570c27AF50603A08490C8621e3d0EFfa4b27
- DELEGATECALL
- present
- 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.
- 0x06bfcec6 implementationVersion
- 0x152d0731 freezeUpgrades
- 0x15424b08 INITIAL_TICK
- 0x1f9097db transferUpgradeAuthority
- 0x21d0ee70 beforeRemoveLiquidity
- 0x239f3af7 TICK_UPPER
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.
0x249d39e9
BPS
0x259982e5 beforeAddLiquidity0x46ca626b TICK_SPACING0x47377d92 TICK_LOWER0x478222c2 feeVault0x479dfd7b CREATOR_SHARE_BPS0x4e627e62 referralRegistry0x4f1ef286 upgradeToAndCall0x52d1902d proxiableUUID0x538a3f0e initializeFactory0x55107d29 registerLaunch0x55d1cb60 poolKey0x575e24b4 beforeSwap0x5e3f2727 LP_FEE0x6c2bbe7e afterRemoveLiquidity0x6d439372 upgradesFrozen0x6fe7e6eb afterInitialize0x7819a57b getLaunchByPoolId0x791b98bc positionManager0x941848ed pendingUpgradeAuthority0x9f063efc afterAddLiquidity0xa0e62eb9 poolIdForToken0xad3cb1cc UPGRADE_INTERFACE_VERSION0xb1ce6ce0 updateCreatorPayout0xb3964f23 getLaunch0xb47b2fb1 afterSwap0xb4ac48ad SEED_HOOK_DATA0xb6a8b0fa beforeDonate0xba1b523b acceptUpgradeAuthority0xc45a0155 unknown0xc4e833ce getHookPermissions0xca979653 bootstrapInitializer0xcc2a9a5b initialize0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdd4d7bf7 TRADING_FEE_BPS0xdd7d7cd9 upgradeAuthority0xdf3225ac REFERRAL_SHARE_BPS0xe1b4af69 afterDonate0xed3b13d6 BOUNTY_SHARE_BPS0xfcfc0c09 GRADUATION_THRESHOLD