Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,272,177
0x0eb6…E0c4
The eight checks
4 pools use this hook, the first one 49 d ago.
- 01caution
Permissions that touch your moneyThe address enables 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.
- 03pass
LPs can get outLiquidity added and removed in the same block came back whole.
- 04caution
The fee is the feeIts pools use a dynamic fee that the hook sets before every swap. It stands at 0% now and can change.
- 05caution
No one holds the switchNo owner() but it has claimFeesBatch, claimFees.
- 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 record4 pools over 48 days.
Measured at block 93,272,177. 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 & 0x3fff0x20c4 · 10000011000100
- 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 / BUN
fee dynamic, now 0%- Swap ETH → BUNno liquidity at the current price
- Swap BUN → ETHno liquidity at the current price
- Add, then remove liquiditycame back whole
pool 0x859d6d8f11cd5448b569547015da47df8c9a735b75bdf90d8e6f287d1f65c01f
Read from the bytecode
- Code size
- 11,887 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.
- 0xebd09054 FEE_RECIPIENT
- 0xf4a9c2db poolStates
- 0xfc13980f unknown
- 0xfdc39fa3 DYNAMIC_FEE
- 0xdc4c90d3 poolManager
- 0xdc98354e beforeInitialize
- 0xe1b4af69
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.
- After swap returns delta. Can take part of what you get out of every swap.
afterDonate
0xc4e833ce getHookPermissions0xc54e44eb USDT0xd0fe40bd unknown0xd5801203 LAUNCH_EXPIRY0xd5eb811d unknown0xd62942a6 LAUNCH_TICK_SPAN0xad5c4648 WETH0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xb9e4b65c LAUNCH_COMPONENT_CAP0xbe37a29b PROTOCOL_SHARE_BIPS0xc0fa5d7c ITEM_TOKEN_ID0x82f3ae79 claimFeesBatch0x84bb1d7d MAX_BASE_FEE_PIPS0x89a30271 USDC0x8d999802 VOL_FEE_PER_TICK0x9da38371 isStableQuote0x9f063efc afterAddLiquidity0x62899364 unknown0x67780d30 DRIFT_FEE_PER_TICK0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x74779b51 VOL_COMPONENT_CAP0x8288b8cf unknown0x470d4da6 SIZE_MAX_STEPS0x47ecc733 unknown0x4d588b28 accruedBalances0x4dbeb3e3 MAX_FEE_PIPS0x575e24b4 beforeSwap0x57ae3a9f USDG0x21d0ee70 beforeRemoveLiquidity0x259982e5 beforeAddLiquidity0x406f0550 unknown0x43bfdfd6 SIZE_COMPONENT_CAP0x44386321 USD10x44ae5197 VOL_WINDOW0x0f29dc47 SIZE_FEE_INCREMENT0x146958d3 DRIFT_RESET0x15a0ea6a claimFees0x16a1647f sizeStepFor0x1fd5203d unknown0x20ead6c3 unknown