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,199
0x2485…D0cc
The eight checks
8 pools use this hook, the first one 102 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 9.87% of each swap on top of the pool fee.
- 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 2.85% now and can change.
- 05caution
No one holds the switchOwned by 0x57d783F8a2877450689534d1860e44B09b3f7ABf. Owner-style functions: setFeeThreshold, setWhitelistConfig, setCooldownConfig, updateAdminFee, setInitialConfig, updateWhitelistWallets.
- 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 record8 pools over 102 days.
Measured at block 93,088,199. 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 & 0x3fff0x10cc · 01000011001100
- 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 / OH
fee dynamic, now 2.85%- Swap ETH → OHhook takes 9.87%
- Swap OH → ETHhook takes 9.87%
- Add, then remove liquiditycame back whole
pool 0xfb2fd809b3446be276fe9a1af736e02dca19a04da2280cc6d1c5cba24e001c84
ETH / OSE
fee dynamic, now 1%- Swap ETH → OSEhook takes 4.50%
- Swap OSE → ETHhook takes 4.50%
- Add, then remove liquiditycame back whole
pool 0xbbc6a405c4ac10de3cb6fcbb6d587d7ed2077c287c0e0194a4ce685bef90d45b
Read from the bytecode
- Code size
- 24,568 bytes
- Owner
- 0x57d783F8a2877450689534d1860e44B09b3f7ABf
- Proxy
- no
- 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.
- 0x168eb5fe setFeeThreshold
- 0x1ff8d3f6 setWhitelistConfig
- 0x21d0ee70 beforeRemoveLiquidity
- 0x259982e5 beforeAddLiquidity
- 0x39d5673d getRewardSwapPoolKey
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- After initialize. Runs once, right after 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.
0x40bcf250
setCooldownConfig
0x53a73fb2 simulateSwapTick0x575e24b4 beforeSwap0x6c2bbe7e afterRemoveLiquidity0x6c2bf3e7 updateAdminFee0x6ca9787e distributeFee0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x7b6c4f54 setInitialConfig0x87ccfa82 getDynamicFeeState0x8a966bab initializeTickForAntiSandwichBatched0x8da5cb5b owner0x91dd7346 unlockCallback0x9f063efc afterAddLiquidity0xa5e804e2 updateWhitelistWallets0xa7539b71 transferOwnershipOfPool0xb3abdf88 getAntiSandwichBatchProgress0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xc4e833ce getHookPermissions0xc5be96c2 getPoolFullConfig0xd1408efd setRewardSwapPoolKey0xdbec7d9e distributeAdminFees0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdd396a08 batchSetPoolFeeAndDistributionConfig0xe0c3c115 setAntiSandwich0xe1b4af69 afterDonate0xf2fde38b transferOwnership0xf4099811 isWhitelisted0xf6bf16e6 initializeTickForAntiSandwich