Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,458,293
0x3E9a…68cc
The eight checks
1 pool use this hook, the first one 21 h 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.
- 02pass
What it takes from a swapIt takes 1% 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 switchOwned by 0xe2CBe71225dddd9ba342F6f01035092c34eeA3C2. Owner-style functions: setProtocolBps, setLaunchpad, claimable, claim, setVault, burnPot.
- 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.
- 08caution
Track record1 pool, first seen 0 days ago.
Measured at block 93,458,293. 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 & 0x3fff0x28cc · 10100011001100
- 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 / TBROOK
fee 0%- Swap ETH → TBROOKhook takes 1.00%
- Swap TBROOK → ETHhook takes 1%
- Add, then remove liquiditydeposit refused: NotLaunchpad
pool 0x2d29c725ab922bcd8de69200d9dae5e66430210752d94c68d3fc7f2a03eff693
Read from the bytecode
- Code size
- 16,808 bytes
- Owner
- 0xe2CBe71225dddd9ba342F6f01035092c34eeA3C2
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 12
- 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
- 0x1564ea4b setProtocolBps
- 0x1d2005c3 vaultLocked
- 0x21c099c8 poolKeyFor
- 0x21d0ee70 beforeRemoveLiquidity
- 0x249d39e9 BPS
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 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.
0x259982e5
beforeAddLiquidity
0x36f4c0eb setLaunchpad0x3a08a016 MAX_BUYBACK_INTERVAL0x402914f5 claimable0x415307cc bountyBps0x46ca626b TICK_SPACING0x48bdd198 lockVault0x4dd8bed1 register0x4e71d92d claim0x50e5213f MAX_PROTOCOL_BPS0x5561f360 guardOpen0x575e24b4 beforeSwap0x5e3f2727 LP_FEE0x67a011d7 validateRules0x6817031b setVault0x6a202708 burnPot0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x700e08d9 MAX_GUARD0x75ae6a42 protocolAccrued0x82d8886b MAX_BUYBACK_CAP0x8841e02e getRules0x8d68cc57 MAX_DECAY0x8da5cb5b owner0x91dd7346 unlockCallback0x93a96d8d MAX_BOUNTY_CAP0x94967005 protocolBps0x9b70b543 MIN_BUYBACK_INTERVAL0x9f063efc afterAddLiquidity0xa190fff9 feeNow0xa262f5f8 claimTo0xad879df1 lastBuyback0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xb94ef69d flushProtocol0xc038a38e totals0xc1a8751d setBuybackParams0xc4e833ce getHookPermissions0xc7791216 maxBuyback0xc8040e64 MAX_START_FEE_BPS0xd261cfb0 maxBounty0xd55be8c6 MAX_FEE_BPS0xd6117dde buybackAndBurn0xd7c21f35 MAX_BUYBACK_IMPACT_BPS0xd8bad99a buybackInterval0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe00a2287 minBuyback0xe1b4af69 afterDonate0xe5a4ffc5 MAX_BOUNTY_BPS0xf2fde38b transferOwnership0xf6c00927 getPool0xf9dcaaf3 poolStats0xfbfa77cf vault