Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,923,383
0xdd35…6888
The eight checks
35 pools use this hook, the first one 49 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.
- 03n/a
LPs can get outClosed to outside LPs: only the hook's own liquidity is in the pool.
- 04pass
The fee is the feeA fixed fee of 0%, written in the pool key.
- 05caution
No one holds the switchOwned by 0xa18522c433C9DFCbaD43A81D8D9218D26F67218e. Owner-style functions: upgradeToAndCall, UPGRADE_INTERFACE_VERSION.
- 06fail
The code cannot changeIt is a proxy. The code that runs lives at 0xC02D69736aB08292Cb36CdD765C6C41DF22E85ac.
- 07pass
Only the PoolManager can call itEach callback refused a call that did not come from the PoolManager.
- 08pass
Track record35 pools over 48 days.
Measured at block 92,923,383. 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 & 0x3fff0x2888 · 10100010001000
- 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.
ASML / USDG
fee 0%- Swap ASML → USDGno liquidity at the current price
- Swap USDG → ASMLno liquidity at the current price
- Add, then remove liquiditydeposit refused: HookNotImplemented
pool 0x2a19b2a42126ba275c192767a03975208541c353b7a9ae29307f7fa16349655f
Read from the bytecode
- Code size
- 21,674 bytes
- Owner
- 0xa18522c433C9DFCbaD43A81D8D9218D26F67218e
- Proxy
- yes, code at 0xC02D69736aB08292Cb36CdD765C6C41DF22E85ac
- DELEGATECALL
- present
- 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.
- 0x06bc264a permissionHash
- 0x09f2c019 getPoolInfo
- 0x16c53a6c unknown
- 0x21505f88 getOracleState
- 0x21d0ee70 beforeRemoveLiquidity
- 0x249d39e9 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 add liquidity. Can refuse a deposit, or only let some addresses provide liquidity.
- 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.
0x259982e5
beforeAddLiquidity
0x2efca445 unknown0x2f061f0f usdAnchor0x37aafada unknown0x403ebd03 storageVersion0x41d1de97 allPools0x454de0bf unknown0x46ca626b TICK_SPACING0x4f1ef286 upgradeToAndCall0x50b10dde minUsdReserve0x52d1902d proxiableUUID0x54fd4d50 version0x575e24b4 beforeSwap0x6217a9a5 unknown0x63948e24 unknown0x66a4b6c0 usdDecimals0x6c2bbe7e afterRemoveLiquidity0x6c43ba91 unknown0x6ed2da8b unknown0x6f51bb48 unknown0x6fe7e6eb afterInitialize0x813ce266 unknown0x8da5cb5b owner0x8dc3b59c unknown0x8eec5d70 getPoolCount0x9e5fae4a unknown0x9ef2b381 STORAGE_VERSION0x9f063efc afterAddLiquidity0x9f7cfedc unknown0xa3775b57 unknown0xa86d4c1c unknown0xad3cb1cc UPGRADE_INTERFACE_VERSION0xaf26886e unknown0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xc4e833ce getHookPermissions0xcc86baf2 adminFacet0xcd6dc687 initialize0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdda607f9 unknown0xe1b4af69 afterDonate0xe5598293 getPoolKey0xe834990a unknown0xe9161a3b unknown0xed7c9cc6 unknown0xf5b91b7b usdg0xfcc6433b SQRT_PRICE_1_1