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,703
0x104a…0088
The eight checks
87 pools use this hook, the first one 90 d ago.
- 01caution
Permissions that touch your moneyThe address enables before swap returns delta. The hook is allowed to take; the next two checks measure whether it does.
- 02n/a
What it takes from a swapNo pool with liquidity to swap through yet.
- 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.00%, written in the pool key.
- 05caution
No one holds the switchOwned by 0x2A315c59a6a95AEEec085c73Badac801C2F4209F. Owner-style functions: setOwner, setPaused, paused, setPoolFee.
- 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 record87 pools over 90 days.
Measured at block 92,890,703. 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 & 0x3fff0x0088 · 00000010001000
- 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.
PONS / USDG
fee 0.00%- Swap PONS → USDGno liquidity at the current price
- Swap USDG → PONSno liquidity at the current price
- Add, then remove liquiditycame back whole
pool 0xd26f5a07420b198a529327612440fe2ead34e2c2a99bb6eea91b2859f4a3cf35
Read from the bytecode
- Code size
- 21,990 bytes
- Owner
- 0x2A315c59a6a95AEEec085c73Badac801C2F4209F
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 22
- 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.
- 0x13af4035 setOwner
- 0x14a1883a computeMarketId
- 0x16c38b3c setPaused
- 0x21d0ee70 beforeRemoveLiquidity
- 0x249d39e9 BPS
- 0x259982e5 beforeAddLiquidity
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- Before swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
- Before swap returns delta. Can take part of what you put into a swap, or change how much is swapped.
0x2b8f8035 unknown0x371d09ba unknown0x3ba66ed0 unknown0x3fc8cef3 weth0x41d1de97 allPools0x54fd4d50 version0x575e24b4 beforeSwap0x5c975abb paused0x67e82ce5 isMarketInitialized0x6a146024 WAD0x6a539c3c unknown0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x88c47f68 VIRTUAL_SHARES0x8da5cb5b owner0x8ec6cd0d unknown0x8eec5d70 getPoolCount0x91dd7346 unlockCallback0x9789ae80 isPoolRegistered0x9f063efc afterAddLiquidity0xa7d6d0a0 unknown0xb0e6749a DEFAULT_TICK_SPACING0xb2082124 ORACLE_PRICE_SCALE0xb47b2fb1 afterSwap0xb5217bb4 pools0xb61d27f6 execute0xb6608409 VIRTUAL_ASSETS0xb6a8b0fa beforeDonate0xbefa61d5 unknown0xbfd3da96 unknown0xc4e833ce getHookPermissions0xc90fdfc2 unknown0xd8fbc833 morpho0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe1b4af69 afterDonate0xe6368747 unknown0xf8f5ae94 setPoolFee0xfcc6433b SQRT_PRICE_1_10xffa1ad74 VERSION