Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,176,732
0xd450…30C8
The eight checks
6 pools use this hook, the first one 39 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.
- 02pass
What it takes from a swapIt takes 1% 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 1%, written in the pool key.
- 05caution
No one holds the switchOwned by 0x3e6C01Db5342e50d819eFA08b812FD0ebC5c1bB3. Owner-style functions: collectPoolFees, setRelaunch, setDefaultAntiSnipeDuration, setProtocolTreasury, setFeeSplits, setFactory.
- 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 38 days.
Measured at block 93,176,732. 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 & 0x3fff0x30c8 · 11000011001000
- 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.
WETH / FAM
fee 1%- Swap WETH → FAMhook takes 1.00%
- Swap FAM → WETHhook takes 1.00%
- Add, then remove liquiditycame back whole
pool 0x68910a4da43d13718ec666fd16d269e8308838bc53a9439b3d80be33d1286dd7
WETH / TEST
fee 1%- Swap WETH → TESThook takes 1.00%
- Swap TEST → WETHhook takes 1%
- Add, then remove liquiditycame back whole
pool 0x3104a76f0896b8ce84bff74aa71ee89bb38b53fee3ff511c149f1578fd3cc028
Read from the bytecode
- Code size
- 21,028 bytes
- Owner
- 0x3e6C01Db5342e50d819eFA08b812FD0ebC5c1bB3
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 17
- 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.
- 0x089d29fd spotMarketcapQuote
- 0x1605653d collectPoolFees
- 0x21d0ee70 beforeRemoveLiquidity
- 0x259982e5 beforeAddLiquidity
- 0x286c7265 setRelaunch
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.
- After initialize. Runs once, right after 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.
0x2aa15df4
setDefaultAntiSnipeDuration
0x2c597de9 MAX_TAX_BPS0x2ca84ecc successionModule0x34a31f0d LP_FAMILY_BPS0x467002cb setProtocolTreasury0x46a602ae setFeeSplits0x4933f430 creatorOf0x4c87d015 MAX_COMBINED_FEE_BPS0x548d2e31 deactivateTaxPeriod0x575e24b4 beforeSwap0x5a1d9661 deepenLiquidity0x5bb47808 setFactory0x62c06767 sweep0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x7770e80c relaunch0x8238e9da tokenPool0x89029373 setTaxBps0x8da5cb5b owner0x91dd7346 unlockCallback0x92c81c4f registerLaunch0x9c6b88a8 getPoolId0x9f063efc afterAddLiquidity0xa6459d69 LP_CREATOR_BPS0xa8087911 setLiquidityTiers0xa8a6fb91 activeQuoteAmount0xad091230 launches0xaed471f3 activeBps0xb28a23d6 defaultTiers0xb47b2fb1 afterSwap0xb5ec6532 activeLiquidity0xb6a8b0fa beforeDonate0xb7a63d37 seededRanges0xb9e00eea activeTokenAmount0xbc97314f launchers0xc45a0155 unknown0xc4e833ce getHookPermissions0xd4b3aef0 setCreator0xd6430570 getLiquidityTiers0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe1a45218 BPS_DENOMINATOR0xe1b4af69 afterDonate0xef8457ef defaultAntiSnipeDuration0xf0800a6b setSuccessionModule0xf2fde38b transferOwnership0xfcb45916 launchInfo0xffcbb529 activateTaxPeriod