Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,921,201
0xA87b…6000
The eight checks
55 pools use this hook, the first one 58 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.
- 04pass
The fee is the feeA fixed fee of 1%, written in the pool key.
- 05caution
No one holds the switchNo owner() but it has setPlatformToken, claim, claimTreasury, claimAll, 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 record55 pools over 58 days.
Measured at block 92,921,201. 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 & 0x3fff0x2000 · 10000000000000
- 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 / NYSE
fee 1%- Swap WETH → NYSEnothing taken
- Swap NYSE → WETHnothing taken
- Add, then remove liquiditycame back whole
pool 0x27c72daa84e825171e3cb72f04d28a4b1a7d9b9208974549e8fbbd84f5666fd8
WETH / TEST
fee 1%- Swap WETH → TESTnothing taken
- Swap TEST → WETHnothing taken
- Add, then remove liquiditycame back whole
pool 0xf3d9b5b93602aa9b1e6d411cafc730dd51319ff16288fe0c587e91feaa5e752c
Read from the bytecode
- Code size
- 20,255 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 29
- 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.
- 0x01099984 harvest
- 0x0255a03b setPlatformToken
- 0x0a669094 isRewardToken
- 0x0eb66676 BUILDER_VERSION
- 0x129047f1 deepeningBps
- 0x1e83409a claim
- 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.
beforeRemoveLiquidity
0x259982e5 beforeAddLiquidity0x260f3849 buyCooldownWindowSecs0x2619b32b DEFAULT_MAX_SHARE_BPS0x343d3765 jitEnabled0x42071b86 growthInsideLastX1280x44e07682 MAX_BUY_COOLDOWN_SECS0x46f61ca8 claimTreasury0x481c6a75 manager0x4ee628a3 universal0x51a171a7 launchedToken0x538a3f0e initializeFactory0x575e24b4 beforeSwap0x57ae3a9f USDG0x5960cbb9 seedPositionId0x61d027b3 treasury0x65bf5035 seed0x6930fd2a claimAll0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x791b98bc positionManager0x8cfdd327 deepeningMode0x91dd7346 unlockCallback0x9484bcde rewardTokens0x98ea099b phase1CapEth0x9a6e8dbf registerSeedPosition0x9f063efc afterAddLiquidity0xa7a963d9 creatorStatus0xab205643 launchTs0xab995608 juice0xad5c4648 WETH0xadc36894 buyCooldownSecs0xb2e4a9a1 MAX_CAP_ETH0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xbc73943d registerSeed0xbd10bc5f antiSnipeEnabled0xc45a0155 unknown0xc6e15b82 MAX_BUY_COOLDOWN_WINDOW_SECS0xd1a4b990 phase1Secs0xd1b812cd platformToken0xd5708431 MAX_WINDOW_SECS0xd95c8b5f creatorBurnBps0xda4e6595 pending0xdb79e5c4 phase2Secs0xdbbaada9 lastBuyTs0xdc98354e beforeInitialize0xddd5e1b2 claim0xe1b4af69 afterDonate0xe222698c growthGlobalX1280xe9ade90e feeShare0xefff774a phase2CapEth0xf0f44260 setTreasury0xf4d5db61 prevFeeShare0xf5baf0d7 manifest0xfaf24b43 recordLaunch