Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,976,752
0xfe05…c0CC
The eight checks
29 pools use this hook, the first one 20 d ago.
- 01caution
Permissions that touch your moneyThe address enables before swap returns delta, after swap returns delta. The hook is allowed to take; the next two checks measure whether it does.
- 02caution
What it takes from a swapIt takes 3% of each swap 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 0x57F8d8523F83eAfC82F6cC5Db5796f59c32A9EFB. Owner-style functions: sweepHolders, sweepPlatform, setFlywheel, sweepLiquidityShare, setCreatorPayout, sweep.
- 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 record29 pools over 19 days.
Measured at block 92,976,752. 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 & 0x3fff0x00cc · 00000011001100
- 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.
TSLA / CAT
fee 1%- Swap TSLA → CAThook takes 3.00%
- Swap CAT → TSLAhook takes 3%
- Add, then remove liquiditycame back whole
pool 0xbeb42ce13b5a33a228a1b5467399b707254f4e648ca6f55ffac3091594543bdd
Read from the bytecode
- Code size
- 12,858 bytes
- Owner
- 0x57F8d8523F83eAfC82F6cC5Db5796f59c32A9EFB
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 10
- 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.
- 0x047a6a5a registerPool
- 0x04e8805c totalFeeBps
- 0x0759e07a permissionsToFlags
- 0x0885f732 poolConfig
- 0x08b154e8 sweepHolders
- 0x08b66372 HOOK_FLAGS
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.
- 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.
- After swap returns delta. Can take part of what you get out of every swap.
0x0a4607c6
sweepPlatform
0x0e3fbe2b setFlywheel0x1762bcd1 sweepLiquidityShare0x21d0ee70 beforeRemoveLiquidity0x246dada2 setCreatorPayout0x248eb4ec sweep0x24ea26ea SNIPER_LIQUIDITY_BPS0x259982e5 beforeAddLiquidity0x264d26dd liquidityReceiver0x2975067d MAX_CREATOR_TAX_BPS0x32c961d9 toId0x355d7548 SNIPER_OPENING_TAX_BPS0x3d34106d AFTER_SWAP_FLAG0x431a9caa MAX_TOTAL_FEE_BPS0x539aa77f PLATFORM_FEE_BPS0x575e24b4 beforeSwap0x584e5006 MAX_SNIPER_WINDOW_BLOCKS0x5ec96a24 defaultSniperWindowBlocks0x61d027b3 treasury0x6891be5c SNIPER_WINDOW_CAP_LIMIT0x69fbdeb1 AFTER_SWAP_RETURNS_DELTA_FLAG0x6aa94fc7 BEFORE_SWAP_RETURNS_DELTA_FLAG0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x71874426 sweepCreator0x79861bba MIN_CREATOR_TAX_BPS0x7acf5b92 flywheel0x8da5cb5b owner0x91d2ec5a SNIPER_CREATOR_BPS0x91dd7346 unlockCallback0x944cca00 setDefaultSniperWindowBlocks0x95e595de MIN_TOTAL_FEE_BPS0x9f063efc afterAddLiquidity0xa3f4bac7 ALL_HOOK_MASK0xa9a091bb validateHookAddress0xab803a76 sweepNative0xb1739d2c sniperBlocksRemaining0xb244bd2f setPlatformFlywheelBps0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xb9d202ec platformFlywheelBps0xbbed49bd sweepLiquidityShareTo0xbc25cf77 skim0xc1bf1dcf setRegistrar0xc4e833ce getHookPermissions0xc82cc7da holderRewardsFactory0xcc3cbd2a CREATOR_FEE_BPS0xd29d22dc SNIPER_PLATFORM_BPS0xd45adfb1 BEFORE_SWAP_FLAG0xd5db72eb isRegistrar0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe1b4af69 afterDonate0xf0f44260 setTreasury0xf2fde38b transferOwnership0xf92f23a7 accrued