Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,890,754
0x037B…daCc
The eight checks
223 pools use this hook, the first one 72 d ago.
- 01caution
Permissions that touch your moneyThe address enables before remove liquidity, 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 swapIt took 11% of a 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 1%, written in the pool key.
- 05caution
No one holds the switchOwned by 0x57d783F8a2877450689534d1860e44B09b3f7ABf. Owner-style functions: setConversionSlippage, setWhitelistConfig, updateAdminFee, setCooldownConfig, setRewardSwapConfig, setInitialConfig.
- 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 record223 pools over 72 days.
Measured at block 92,890,754. 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 & 0x3fff0x1acc · 01101011001100
- 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 / DACITY
fee 1%- Swap ETH → DACITYhook takes 11%
- Swap DACITY → ETHhook takes 11%
- Add, then remove liquiditycame back whole
pool 0xa4d059d1dda9376e8efe19c71bcca780ee1f8bfdc7076f5d94a98551472b8b0a
ETH / basius
fee 1%- Swap ETH → basiushook takes 4.40%
- Swap basius → ETHhook takes 4.40%
- Add, then remove liquiditycame back whole
pool 0xac1cff57b738745c73d914733a2878b7a54d42c36913e5314dd5b58107d96ecc
Read from the bytecode
- Code size
- 23,014 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.
- 0x020208f6 renounceOwnershipOfPool
- 0x078de4e7 getAdminFeeConfig
- 0x1cb429dc setConversionSlippage
- 0x1ff8d3f6 setWhitelistConfig
- 0x21d0ee70 beforeRemoveLiquidity
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 add liquidity. Can refuse a deposit, or only let some addresses provide liquidity.
- Before remove liquidity. Can refuse a withdrawal. LPs may not get out.
- 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.
0x259982e5
beforeAddLiquidity
0x3c3846cf updateAdminFee0x3ef9a28d quoteSwapFees0x40bcf250 setCooldownConfig0x47930cf5 setRewardSwapConfig0x4b61e085 selfDistributeFees0x53a73fb2 simulateSwapTick0x573fea74 getFeeHardLimits0x575e24b4 beforeSwap0x6c2bbe7e afterRemoveLiquidity0x6ca9787e distributeFee0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x7b6c4f54 setInitialConfig0x87ccfa82 getDynamicFeeState0x8da5cb5b owner0x91dd7346 unlockCallback0x9f063efc afterAddLiquidity0xa5e804e2 updateWhitelistWallets0xa7539b71 transferOwnershipOfPool0xae4978e5 setReferral0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xc4e833ce getHookPermissions0xc5be96c2 getPoolFullConfig0xdbec7d9e distributeAdminFees0xdc4c90d3 poolManager0xdc75b854 batchSetPoolFeeAndDistributionConfig0xdc98354e beforeInitialize0xe1b4af69 afterDonate0xf0fa9eb6 setFeeThreshold0xf2fde38b transferOwnership