Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,032,804
0x8908…Eacc
The eight checks
11 pools use this hook, the first one 63 d ago.
- 01caution
Permissions that touch your moneyThe address enables before remove liquidity, 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 1.85% of each swap on top of the pool fee.
- 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 switchNo owner() but it has setBuyerReward, claim, sweepRwa, rescue, setRewardVault, rescueRenounced.
- 06caution
The code cannot changeThe bytecode contains DELEGATECALL.
- 07pass
Only the PoolManager can call itEach callback refused a call that did not come from the PoolManager.
- 08pass
Track record11 pools over 63 days.
Measured at block 93,032,804. 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 & 0x3fff0x2acc · 10101011001100
- 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.
ETH / SYNCA
fee 0%- Swap ETH → SYNCAhook takes 1.85%
- Swap SYNCA → ETHno liquidity above the price
- Add, then remove liquiditydeposit refused: UnauthorizedLiquidity
pool 0xea11e532eb71a7efadeaa0f6b10794d50461f25864f2763055c54dcd6543ac1a
ETH / JPREF
fee 0%- Swap ETH → JPREFhook takes 1.60%
- Swap JPREF → ETHno liquidity above the price
- Add, then remove liquiditydeposit refused: UnauthorizedLiquidity
pool 0xdeec9ba62968d2776ddcb0a3031147f319b51f6f09a6539c95e205fe0a03ac17
Read from the bytecode
- Code size
- 24,263 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- present
- SELFDESTRUCT
- absent
- Outside calls
- 24
- 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.
- 0x05bbe18e LIQUIDITY_FEE_BPS_GRADUATED
- 0x1129a2b7 launchStateOf
- 0x130896b0 setBuyerReward
- 0x165acc85 qualifyingBuyCount
- 0x1795d3e2 buyerRewardEvery
- 0x1e83409a claim
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 remove liquidity. Can refuse a withdrawal. LPs may not get out.
- 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.
0x21d0ee70
beforeRemoveLiquidity
0x249d39e9 BPS0x259982e5 beforeAddLiquidity0x2af9febb platformRecipient0x2ca54c9c TAIL_TICK_WIDTH0x34f17e89 unknown0x39d960ad snipeMaxBuyBps0x3a2c6777 rewardVault0x3dfd66f8 renounceRescue0x3f2a5540 rewardsDistributor0x46ca626b TICK_SPACING0x471a0ccc CREATOR_RWA_POOL_BPS0x4b5546d9 sweepRwa0x4bc28bc9 unknown0x539aa77f PLATFORM_FEE_BPS0x54803d4d buyerRewardRound0x575e24b4 beforeSwap0x5bb9535b unknown0x63209b72 boughtDuringSnipeWindow0x6493fd84 pendingLiquidityFeeOf0x689b4a45 BUYER_REWARD_CAP_BPS0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x72c1e30b buyerRewardPot0x7a4e4ecf rescue0x7b103999 registry0x7bf2745b snipeWindowSecs0x8125dd10 setRewardVault0x8b399a20 flushToDistributor0x8ff279eb unknown0x91dd7346 unlockCallback0x9a799c30 rescueRenounced0x9c8ef1f4 LIQUIDITY_FEE_BPS_CURVE0x9f063efc afterAddLiquidity0xa0b2fa38 surgeMaxBps0xa1a4eb5a unknown0xa31e98cf minQualifyingBuy0xaa6df5e7 unknown0xab461aae MAX_SURCHARGE_BPS0xac34ab35 sweepBurn0xaefa5d62 unknown0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xbf4270c3 sweepClaims0xc45a0155 unknown0xc4c39b7d unknown0xc4e833ce getHookPermissions0xc89ac083 setSnipeGuard0xd01057f3 SNIPER_TAX_FLOOR_BPS0xd0280936 setPlatformRecipient0xd1f5c33b setRewardsDistributor0xd4570c1c claimable0xd6614f84 CREATOR_ONLY_BPS0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdf21046e unknown0xe1b4af69 afterDonate0xee5b4f08 unknown0xfc472bb6 unknown