Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,087,291
0x11f0…6ACc
The eight checks
9 pools use this hook, the first one 77 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.
- 02n/a
What it takes from a swapNo pool with liquidity to swap through yet.
- 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 record9 pools over 77 days.
Measured at block 93,087,291. 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 / RWAX
fee 0%- Swap ETH → RWAXno liquidity at the current price
- Swap RWAX → ETHno liquidity at the current price
- Add, then remove liquiditydeposit refused: UnauthorizedLiquidity
pool 0x764a24d1dd85861ea31c3923bd69a84d6ab7d87ad513f81bce782b1547ba51f0
Read from the bytecode
- Code size
- 22,610 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- present
- SELFDESTRUCT
- absent
- Outside calls
- 32
- 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_WIDTH0x39d960ad snipeMaxBuyBps0x3a2c6777 rewardVault0x3dfd66f8 renounceRescue0x3f2a5540 rewardsDistributor0x40d0d503 buybackPotOf0x46ca626b TICK_SPACING0x471a0ccc CREATOR_RWA_POOL_BPS0x4b5546d9 sweepRwa0x539aa77f PLATFORM_FEE_BPS0x54803d4d buyerRewardRound0x575e24b4 beforeSwap0x63209b72 boughtDuringSnipeWindow0x6493fd84 pendingLiquidityFeeOf0x689b4a45 BUYER_REWARD_CAP_BPS0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x72c1e30b buyerRewardPot0x7a4e4ecf rescue0x7b103999 registry0x7bf2745b snipeWindowSecs0x8125dd10 setRewardVault0x8b399a20 flushToDistributor0x91dd7346 unlockCallback0x9a799c30 rescueRenounced0x9c8ef1f4 LIQUIDITY_FEE_BPS_CURVE0x9f063efc afterAddLiquidity0xa31e98cf minQualifyingBuy0xae781199 triggerBuyback0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xbf4270c3 sweepClaims0xc45a0155 unknown0xc4e833ce getHookPermissions0xc89ac083 setSnipeGuard0xd01057f3 SNIPER_TAX_FLOOR_BPS0xd0280936 setPlatformRecipient0xd1f5c33b setRewardsDistributor0xd4570c1c claimable0xd6614f84 CREATOR_ONLY_BPS0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe0116bc2 buybackMinTokensPerEth0xe1b4af69 afterDonate0xf8547db2 seedPool0xfccc2813 BURN_ADDRESS0xfe1d3483 rescuableEth0xff0e273d setBuybackPriceFloor