Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,238,382
0xfbb4…0044
The eight checks
4 pools use this hook, the first one 110 d ago.
- 01caution
Permissions that touch your moneyThe address enables 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 2.00% 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 0.30%, written in the pool key.
- 05caution
No one holds the switchOwned by 0xaE1c96A263c4fDEb1942e7f3a196570B209C5176. Owner-style functions: setCreatorFeeBps, setTreasury, transferOwnership, setRegistrar.
- 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 record4 pools over 110 days.
Measured at block 93,238,382. 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 & 0x3fff0x0044 · 00000001000100
- 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 / 1
fee 0.30%- Swap ETH → 1hook takes 2%
- Swap 1 → ETHhook takes 2%
- Add, then remove liquiditycame back whole
pool 0x21422ba760922dbeb0110614f2ac4ada8318a7eee44f031b5453c81febe996e6
ETH / QUINN
fee 0.30%- Swap ETH → QUINNhook takes 2.00%
- Swap QUINN → ETHhook takes 2.00%
- Add, then remove liquiditycame back whole
pool 0x3d419de0aebb70f34b2b9b3aa10d01513d8f5124779da30542968d9bde365cc3
Read from the bytecode
- Code size
- 9,832 bytes
- Owner
- 0xaE1c96A263c4fDEb1942e7f3a196570B209C5176
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 3
- 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.
- 0x0885f732 poolConfig
- 0x17773ebb creatorFeeBps
- 0x1ac5f606 setCreatorFeeBps
- 0x21d0ee70 beforeRemoveLiquidity
- 0x25692962 requestOwnershipHandover
- 0x259982e5 beforeAddLiquidity
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- After swap. Runs after every swap.
- After swap returns delta. Can take part of what you get out of every swap.
0x2b20e397 registrar0x2d6e2a59 unknown0x54d1f13d cancelOwnershipHandover0x5514cefb unknown0x575e24b4 beforeSwap0x61d027b3 treasury0x6a921b92 DEFAULT_FEE_PIPS0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x8da5cb5b owner0x91dd7346 unlockCallback0x9f063efc afterAddLiquidity0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xc4e833ce getHookPermissions0xcd7fc486 unknown0xd5db72eb isRegistrar0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe1b4af69 afterDonate0xf04e283e completeOwnershipHandover0xf0f44260 setTreasury0xf2fde38b transferOwnership0xfaab9d39 setRegistrar0xfc656ac5 handleHookFees0xfee81cf4 ownershipHandoverExpiresAt