Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,975,565
0x72d2…20C0
The eight checks
20 pools use this hook, the first one 43 d ago.
- 01pass
Permissions that touch your moneyNone of the permissions that let a hook take from swaps or from LPs are switched on.
- 02pass
What it takes from a swapA swap through it pays the pool fee and nothing else.
- 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 1% now and can change.
- 05caution
No one holds the switchOwned by 0x6937c4b3A672a4024ccEDdcbeE6d9aEA2983aCc1. Owner-style functions: claimFees, setFeeRecipient, setLaunchpad, setMarketSource, setConfig, 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 record20 pools over 43 days.
Measured at block 92,975,565. 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 & 0x3fff0x20c0 · 10000011000000
- 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.
TESTAH / NVDA
fee dynamic, now 1%- Swap TESTAH → NVDAno liquidity below the price
- Swap NVDA → TESTAHnothing taken
- Add, then remove liquiditycame back whole
pool 0xfd0b6623278fc3fb9f115ec59a95f9247f3f3cc77469ae98b632d7b47ae22e42
AMD / TESTAH
fee dynamic, now 1%- Swap AMD → TESTAHnothing taken
- Swap TESTAH → AMDnothing taken
- Add, then remove liquiditycame back whole
pool 0x8afe815b664e0614aab6b573590c26898eee31b5689692848b63efdbbc889f96
Read from the bytecode
- Code size
- 22,956 bytes
- Owner
- 0x6937c4b3A672a4024ccEDdcbeE6d9aEA2983aCc1
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 11
- 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.
- 0x02669b52 launchpad
- 0x0ae89127 tokenOfPool
- 0x1584410a maxPriceAge
- 0x15a0ea6a claimFees
- 0x17447836 marketSource
- 0x1b553e39 MAX_PRICE_AGE_CAP
- 0x21d0ee70
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.
beforeRemoveLiquidity
0x249d39e9 BPS0x259982e5 beforeAddLiquidity0x25d2a3f3 pendingFees0x270401cb setFeeRecipient0x2975067d MAX_CREATOR_TAX_BPS0x36f4c0eb setLaunchpad0x37ed3f1e protocolShareBps0x3b73dac9 isPoolPriced0x3bbbb17a setMarketSource0x3e99c1e4 getReserves0x46ca626b TICK_SPACING0x4e0370c8 getTokenReserves0x51d0ad29 snipeFeeBps0x5575e683 isOpen0x575e24b4 beforeSwap0x61d027b3 treasury0x67fb1e31 setConfig0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x744b1bc1 isLaunch0x79ba5097 acceptOwnership0x7b103999 registry0x7f787b27 MAX_SWAP_FEE_BPS0x892f928e positionOf0x8da5cb5b owner0x8f5a26ae MAX_BASE_FEE_BPS0x91dd7346 unlockCallback0x91ddadf4 clock0x967234a8 register0x9f063efc afterAddLiquidity0xb3964f23 getLaunch0xb47b2fb1 afterSwap0xb5184459 priceUsd0xb6a8b0fa beforeDonate0xbf5a5940 baseFeeBps0xc3a2a331 snipeSeconds0xc4e833ce getHookPermissions0xc7e5de08 spotPrice0xc7fcba21 poolKey0xc99f873d legPrices0xc9e75cab acceptCreator0xd3523162 unitUsd0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdea5c2e0 creatorOf0xe1b4af69 afterDonate0xe30c3978 pendingOwner0xf0f44260 setTreasury0xf1cc2a40 basketValueUsd0xf2fde38b transferOwnership0xf82e9b9d transferCreator0xff6d8d05 graduate