Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,210,358
0x5b90…e0cC
The eight checks
6 pools use this hook, the first one 11 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.00% 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 0% now and can change.
- 05caution
No one holds the switchOwned by 0x2f7CE7eeF4b091E0827dA1E8C2E10D061d95d180. Owner-style functions: setCreationFees, setPaused, blocksOf, setPayee, setQuoteAllowed, paused.
- 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 record6 pools over 10 days.
Measured at block 93,210,358. 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.
USDG / WPOU
fee dynamic, now 0%- Swap USDG → WPOUhook takes 1.00%
- Swap WPOU → USDGhook takes 1.00%
- Add, then remove liquiditycame back whole
pool 0x187266355f62724ad0dce43694abb9265c2c2314664ac8c969e1afc0edc05570
Read from the bytecode
- Code size
- 18,929 bytes
- Owner
- 0x2f7CE7eeF4b091E0827dA1E8C2E10D061d95d180
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 9
- 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.
- 0x03fd2a45 DEAD
- 0x0450ba84 setCreationFees
- 0x0a29038a unknown
- 0x0d0126ec devShareBps
- 0x0eab3b55 unknown
- 0x14e048ba FEE_CAP
- 0x16c38b3c setPaused
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.
0x1928f54e
quoteAllowed
0x1bdb3edf unknown0x20787d23 unknown0x2815c0ff unknown0x2d39ebac unknown0x2d819906 unknown0x2edf11fa blocksOf0x3b01d64d OVERRIDE_FEE_FLAG0x410459ad setPayee0x45ee2b6a ANTI_SNIPE0x4c4a3c25 stateView0x4f68fed8 unknown0x55e2654d setQuoteAllowed0x575e24b4 beforeSwap0x5c975abb paused0x62d0a1d8 LAUNCH_FEE_CEILING0x6a53bb64 unknown0x6e3c2fdf unknown0x715018a6 renounceOwnership0x7192d53a unknown0x73bde1cf creationFeeUsdg0x79ba5097 acceptOwnership0x7c9b82ca unknown0x7dc99a85 unknown0x84327968 unknown0x8704a208 ROYALTY0x8b8ee371 vol0x8da5cb5b owner0x900dc937 unknown0x91cca3db dev0xa190fff9 feeNow0xa7db9b26 creationFeeEth0xa8d5fd65 share0xadf9719e unknown0xae463a0b setFee0xae90b213 payee0xb000ecb3 unknown0xb1f9e7f6 unknown0xb47b2fb1 afterSwap0xb5217bb4 pools0xba635aab unknown0xc66bc046 marketOpen0xc96798c7 tradingHours0xc97c3845 AUTO_BURN0xca2663a7 setDev0xcc6c1f24 unknown0xccfb5a81 unknown0xd0582670 moved0xd717f374 WINDOW_FLOOR0xdaea60f9 unknown0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xde72d4f3 unknown0xe30c3978 pendingOwner0xf080947f ROYALTY_CEILING0xf26ef49d DYNAMIC_FEE_FLAG0xf2fde38b transferOwnership0xf3b1c2ae unknown0xf434c914 PERMISSIONS0xf43da875 unknown0xf5b91b7b usdg