Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,176,338
0xe758…20CC
The eight checks
6 pools use this hook, the first one 42 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.
- 02caution
What it takes from a swapIt takes 2.00% of each swap on top of the pool fee.
- 03pass
LPs can get outLiquidity added and removed in the same block came back whole.
- 04pass
The fee is the feeA fixed fee of 0%, written in the pool key.
- 05caution
No one holds the switchOwned by 0x93ceA208Cc690Fb7c770a236E9c4500bFf1bc382. Owner-style functions: setPlatformPushThreshold, setEthUsdFeed, setFactory, setTwapWindow, setRoute, claim.
- 06caution
The code cannot changeThe bytecode contains DELEGATECALL.
- 07pass
Only the PoolManager can call itEach callback refused a call that did not come from the PoolManager.
- 08pass
Track record6 pools over 42 days.
Measured at block 93,176,338. 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 & 0x3fff0x20cc · 10000011001100
- 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.
RBLX / BEN
fee 0%- Swap RBLX → BENhook takes 2.00%
- Swap BEN → RBLXno liquidity above the price
- Add, then remove liquiditycame back whole
pool 0x4f73fd0d7e1e30102c094c9972318c237be8c125fe7fb96de3947890b4a97317
GLD / BEN
fee 0%- Swap GLD → BENhook takes 2.00%
- Swap BEN → GLDno liquidity above the price
- Add, then remove liquiditycame back whole
pool 0x91249dd3c4b6e5d2b003d8f1ea97af23236ec5f96f90b4eb93d50092f1b43936
Read from the bytecode
- Code size
- 23,461 bytes
- Owner
- 0x93ceA208Cc690Fb7c770a236E9c4500bFf1bc382
- Proxy
- no
- DELEGATECALL
- present
- SELFDESTRUCT
- absent
- Outside calls
- 13
- 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.
- 0x03fd2a45 DEAD
- 0x047c1b25 unknown
- 0x0dd4df16 unknown
- 0x1a7f9ddd getPoolCfg
- 0x21a048a8 MODE_STANDARD
- 0x21d0ee70 beforeRemoveLiquidity
- 0x23824336
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 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.
MODE_VESTED
0x253a5fb9 unknown0x259982e5 beforeAddLiquidity0x266a439b actionFromSwap0x2a6558de platformPushThreshold0x2af9febb platformRecipient0x2b68f2a5 PUSH_GAS0x301da5d8 PLATFORM_TRADE_BPS0x3174b63b unknown0x3ec26754 unknown0x44cabdbc unknown0x4841c832 flush0x4c4bbb3a platformAccruedOf0x4fdc4be4 unknown0x53ed6018 setPlatformPushThreshold0x55a75475 setEthUsdFeed0x56f349a0 actionThresholdDefault0x575e24b4 beforeSwap0x5a38a7dc unknown0x5bb47808 setFactory0x5f553545 setTwapWindow0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x73035002 poolCountOf0x7962c91a poolsOf0x7da3dafe snipeTaxBps0x7da4346d v3Addresses0x7e8c595a seed0x8009b7bd ethUsdFeed0x8107e133 twapWindow0x81358498 MAX_POOLS0x817025b9 MODE_BURN0x86da12a2 twapPoolOf0x8da5cb5b owner0x8ebd2d29 clearRoute0x91dd7346 unlockCallback0x988c8dcb routeOf0x9f063efc afterAddLiquidity0xa248d907 clearLaunching0xa400932f setRoute0xa8cdfd1f registerPool0xac7e1e92 poolKeys0xb47b2fb1 afterSwap0xb57f4d9c platformAccrued0xb6a8b0fa beforeDonate0xbd66528a claim0xbed6a16f MAX_SNIPE_TAX_BPS0xbedc1b00 unknown0xc3253dd2 hasRoute0xc3f565e1 MODE_PORTFOLIO0xc45a0155 unknown0xc4e833ce getHookPermissions0xcaab6e79 MODE_AUTO_LP0xcbaa1a47 MIN_FEE_BPS0xcc7d234a lowerFee0xd0280936 setPlatformRecipient0xd1ec4cf6 seeded0xd29cbe66 flushPlatform0xd55be8c6 MAX_FEE_BPS0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe0496a37 setActionThresholdDefault0xe1b4af69 afterDonate0xe1d8dec7 poolKeyAt0xe4cf7b66 pathsOf0xec238223 unknown0xf2fde38b transferOwnership0xf4608ce2 creatorWantsEth0xf48403ae setLaunching0xf595b00b unknown0xfd7e8033 creatorAccrued