Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,975,366
0x9aa1…70c0
The eight checks
20 pools use this hook, the first one 13 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 switchOwned by 0x21584BCCBcc1A836E7388a2bA675dEeF76812562. Owner-style functions: transferOwnership, setBuybackExecutor, setAuthenticatedRouter, setAutoBuybackEnabled, setLaunchFactory.
- 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 record20 pools over 13 days.
Measured at block 92,975,366. 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 & 0x3fff0x30c0 · 11000011000000
- 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.
TESTLF2 / LOT-LF2
fee 1%- Swap TESTLF2 → LOT-LF2nothing taken
- Swap LOT-LF2 → TESTLF2nothing taken
- Add, then remove liquiditycame back whole
pool 0x0aa3d33f4e4a65fb59d623da4f52a98abe8c79d3ee3a7cb3200ed16025cbc820
MAGGIE / LOT-mag 5
fee 1%- Swap MAGGIE → LOT-mag 5nothing taken
- Swap LOT-mag 5 → MAGGIEnothing taken
- Add, then remove liquiditycame back whole
pool 0x9d47a2b19e15403ec02f5690792e1694dd9e677a0e6e1595ba89a8b3a0c32cf2
Read from the bytecode
- Code size
- 11,032 bytes
- Owner
- 0x21584BCCBcc1A836E7388a2bA675dEeF76812562
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 0
- 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.
- 0xf2fde38b transferOwnership
- 0xf3f688b1 autoBuybackStatus
- 0xf5fe091c EARLY_BUY_CAP
- 0xf90f2758 earlyBuyChargedTo
- 0xe1b4af69 afterDonate
- 0xe30c3978 pendingOwner
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.
- After initialize. Runs once, right after a pool is created.
- Before swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
- After swap. Runs after every swap.
0xe6df6242
buybackLocker
0xc9978161 earlyWindowEndsAt0xc9eb012c EARLY_CAP_BPS0xcb845520 FEE_STEP0xd43012c0 isAuthenticatedRouter0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xbc063e1a MAX_FEE0xbccbe5e2 AUTO_GAS_HEADROOM0xc4e833ce getHookPermissions0xc889264c earlyBought0x9649adb3 setBuybackExecutor0x965d340c openingBuyUsed0x980e567d setAuthenticatedRouter0x9f063efc afterAddLiquidity0xa1285ce4 AUTO_GAS_MIN_BUDGET0xa67d13d5 prepareOpeningBuy0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x76c7a3c7 MIN_FEE0x79ba5097 acceptOwnership0x8b4c5b4c buybackExecutor0x8da5cb5b owner0x536dac9b launchFactory0x575e24b4 beforeSwap0x5e3f2727 LP_FEE0x621117c5 isAllowedFee0x6c2bbe7e afterRemoveLiquidity0x6fa0f585 lastAutoAt0x342b6215 launchedAtTime0x39039980 setAutoBuybackEnabled0x3bb8a8d4 autoBuybackEnabled0x4411a244 EARLY_WINDOW0x4b7478b9 openingBuyOf0x4fbada35 AUTO_GAS_CAP0x0ba0e2de ORIGINAL_SUPPLY0x1bc1e92f AUTO_GAS_FLOOR0x21d0ee70 beforeRemoveLiquidity0x23c10d13 earlyBuyRemaining0x259982e5 beforeAddLiquidity0x30f38cfb setLaunchFactory