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,958
0xd7d3…A0cc
The eight checks
70 pools use this hook, the first one 73 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 1.20% 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.30%, written in the pool key.
- 05caution
No one holds the switchOwned by 0x7B2DaF7F696bB844C7786693062D6619D1858cC9. Owner-style functions: setMaxSideBps, setInSwapRegistry, setPoolPlatformBps, setSwapConfig, setLauncher, setPlatform.
- 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 record70 pools over 72 days.
Measured at block 92,890,958. 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.
HOOD / HOOD
fee 0.30%- Swap HOOD → HOODhook takes 1.11%
- Swap HOOD → HOODhook takes 1.11%
- Add, then remove liquiditycame back whole
pool 0x481a789011a3094cd0bde4f87988d477d2432cf5a769853daaabd863943297af
HOOD / booh
fee 0.30%- Swap HOOD → boohhook takes 1.20%
- Swap booh → HOODhook takes 1.20%
- Add, then remove liquiditycame back whole
pool 0xec5bffbd7a3ea92e0fdbde3e0de7b2683516d02153f5518f1c4953bf9de4372e
Read from the bytecode
- Code size
- 24,268 bytes
- Owner
- 0x7B2DaF7F696bB844C7786693062D6619D1858cC9
- Proxy
- no
- DELEGATECALL
- present
- SELFDESTRUCT
- absent
- Outside calls
- 8
- 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.
- 0x06c29f11 referralSplitter
- 0x082bebf1 tierDivisor
- 0x0d4dbd1d platformBpsOf
- 0x10be0341 maxSideBps
- 0x19379038 setMaxSideBps
- 0x1a3b4a9b accruedPlatformQuote
- 0x1d0ec52f MAX_SPLIT_RECIPIENTS
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.
0x1e7fdb4f pushOwed0x28079e4a owed0x2bca33e9 MAX_TRADING_DELAY0x31277ba0 adminSetAutoThreshold0x314d76b5 setInSwapRegistry0x32b1f5b9 setPoolPlatformBps0x38929e00 inSwapRegistry0x3e03c062 setSwapConfig0x3edcd8d1 pushSplit0x3fc8cef3 weth0x402b378d defaultAutoThreshold0x40fd6d98 adminSetRewardsBps0x4a774941 MAX_LAUNCH_TAX_BPS0x4bde38c8 platform0x4be27441 setLauncher0x4f28f630 tierBase0x52f9adb4 adminSetRates0x565cf4de convertToWeth0x56f93f37 configurePool0x575e24b4 beforeSwap0x5cd37b3f MAX_LAUNCH_TAX_SECS0x60c6be1b poolRefSink0x61b4fc7f addEdge0x6945c5ea setPlatform0x6ef61607 configOf0x6fb9389a MAX_BUY_LOCK_SECS0x704b6c02 setAdmin0x715018a6 renounceOwnership0x71a43408 setAutoSend0x79ba5097 acceptOwnership0x7ec81752 setQuoteToWethPath0x8997235c effectiveBps0x8c97edfe inSwapAllowed0x8da5cb5b owner0x8fb96c9e pushRewards0x91b31f13 refToken0x91dd7346 unlockCallback0x999699de setMaxBuy0xa04c294b setAutoThreshold0xa87d3374 adminSetAutoSend0xaad3ec96 claim0xae5084d7 setReferralSplitter0xb47b2fb1 afterSwap0xb5c7d44a MAX_PLATFORM_BPS0xb92be3fe splitsOf0xbd115cd2 quoteToWethPath0xbf9b58cf adminSetCreatorSplit0xc31c9c07 swapRouter0xc4e833ce getHookPermissions0xc782a1e3 pushReferral0xc94bafb4 accruedQuote0xcc718f76 config0xcf7568b7 setRewardsBps0xd48a4846 launcherCount0xdab0d529 autoDistribute0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdd1b9c4a POOL_FEE0xe30c3978 pendingOwner0xe978bdd7 setTierParams0xea40f8fe distribute0xebbd8172 MAX_SIDE_BPS_LIMIT0xedfec2bc claimTo0xef176059 setRates0xf2fde38b transferOwnership0xf3d507a3 creatorPoolBpsOf0xf851a440 admin0xf8bc6db2 setTokenCreator0xfa275e11 isLauncher0xfd71aabe MIN_MAX_BUY_BPS0xfde28b32 markReferred0xffd5c11e setDefaultAutoThreshold