Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,891,881
0xF752…a0cC
The eight checks
2293 pools use this hook, the first one 94 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 3% 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: setLauncher, claim, upgradeToAndCall, setPlatform, setAdmin, setAutoThreshold.
- 06fail
The code cannot changeIt is a proxy. The code that runs lives at 0x2D0D124B975870AbE58f659A18FcD5dDD2680c9F.
- 07pass
Only the PoolManager can call itEach callback refused a call that did not come from the PoolManager.
- 08pass
Track record2293 pools over 93 days.
Measured at block 92,891,881. 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.
ETH / gewq
fee 0.30%- Swap ETH → gewqhook takes 3.00%
- Swap gewq → ETHhook takes 3%
- Add, then remove liquiditycame back whole
pool 0x3b20a2f3259f8994253c151dda36215d36d440dbb2bb34f74c99c352f41e1825
Read from the bytecode
- Code size
- 11,707 bytes
- Owner
- 0x7B2DaF7F696bB844C7786693062D6619D1858cC9
- Proxy
- yes, code at 0x2D0D124B975870AbE58f659A18FcD5dDD2680c9F
- DELEGATECALL
- absent
- 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
- 0x1220ef1f accruedEth
- 0x1d0ec52f MAX_SPLIT_RECIPIENTS
- 0x485cc955 initialize
- 0x4bde38c8 platform
- 0x4be27441 setLauncher
- 0x4e71d92d
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.
claim
0x4f1ef286 upgradeToAndCall0x52d1902d proxiableUUID0x5572eb10 configurePool0x575e24b4 beforeSwap0x61b4fc7f addEdge0x6945c5ea setPlatform0x704b6c02 setAdmin0x79ba5097 acceptOwnership0x833057f5 autoDistribute0x8da5cb5b owner0x91b31f13 refToken0x91dd7346 unlockCallback0x9c7be227 CREATOR_POOL_BPS0xa04c294b setAutoThreshold0xad3cb1cc UPGRADE_INTERFACE_VERSION0xae5084d7 setReferralSplitter0xb47b2fb1 afterSwap0xb7b43ed8 MAX_SIDE_BPS0xb92be3fe splitsOf0xc4e833ce getHookPermissions0xcc718f76 config0xce91e164 PLATFORM_BPS0xcf7568b7 setRewardsBps0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdd1b9c4a POOL_FEE0xdf18e047 owed0xe30c3978 pendingOwner0xea40f8fe distribute0xef176059 setRates0xf2fde38b transferOwnership0xf851a440 admin0xf8bc6db2 setTokenCreator0xfa275e11 isLauncher0xfde28b32 markReferred