Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,950,293
0x6C03…60CC
The eight checks
29 pools use this hook, the first one 28 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.35% 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%, written in the pool key.
- 05caution
No one holds the switchOwned by 0x81596084EC21D5eABab7E6D9A6783a8Ce3764241. Owner-style functions: claimCreatorFees, setRegistrar, setFeeClaimer, claimReferralFees, claimPlatformFees, setTreasury.
- 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 record29 pools over 27 days.
Measured at block 92,950,293. 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 / BROS
fee 0%- Swap ETH → BROShook takes 1.35%
- Swap BROS → ETHhook takes 1.35%
- Add, then remove liquiditycame back whole
pool 0xf617bd6fbaaf098a44842cc2184f4f6496aa4f0eee54f6e722321c161de28b96
ETH / KEK
fee 0%- Swap ETH → KEKhook takes 1.35%
- Swap KEK → ETHhook takes 1.35%
- Add, then remove liquiditycame back whole
pool 0x26d5f03ff7de51d3b233ca13aabbf98f07cae79e9ef831762dd33b5c1a36c249
Read from the bytecode
- Code size
- 9,250 bytes
- Owner
- 0x81596084EC21D5eABab7E6D9A6783a8Ce3764241
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 4
- 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.
- 0x1fd71a18 creatorOwed
- 0x240b9586 platformOwed
- 0x249d39e9 BPS
- 0x46062e9a register
- 0x481c6a75 manager
- 0x49421d37 PLATFORM_ADD_BPS
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.
0x575e24b4
beforeSwap
0x5b632360 MAX_TRADE_FEE_BPS0x61d027b3 treasury0x715018a6 renounceOwnership0x81cbd3ea feeClaimer0x89aeca76 registrars0x8c21e2e2 REFERRAL_ADD_BPS0x8da5cb5b owner0x90f0c7bf MIN_TRADE_FEE_BPS0x91dd7346 unlockCallback0x994ec7c7 referralOwed0xa5258210 LP_FEE_BPS0xac4e4054 REQUIRED_HOOK_FLAGS0xb47b2fb1 afterSwap0xb5217bb4 pools0xb947efcb claimCreatorFees0xc1bf1dcf setRegistrar0xc3accd48 setFeeClaimer0xcf893acc claimReferralFees0xdc98354e beforeInitialize0xdf58a76f claimPlatformFees0xf0f44260 setTreasury0xf2fde38b transferOwnership