Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,173,280
0xC6f3…20c0
The eight checks
6 pools use this hook, the first one 26 d ago.
- 01pass
Permissions that touch your moneyNone of the permissions that let a hook take from swaps or from LPs are switched on.
- 02n/a
What it takes from a swapNo pool with liquidity to swap through yet.
- 03pass
LPs can get outLiquidity added and removed in the same block came back whole.
- 04caution
The fee is the feeIts pools use a dynamic fee that the hook sets before every swap. It stands at 0% now and can change.
- 05caution
No one holds the switchOwned by 0xC9e399dDc211Dc16207612B29F69c8429903A794. Owner-style functions: transferOwnership, setKeeper, setCross, setPaused, setCallMarket.
- 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 record6 pools over 25 days.
Measured at block 93,173,280. 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 & 0x3fff0x20c0 · 10000011000000
- 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.
SPY / USDG
fee dynamic, now 0%- Swap SPY → USDGno liquidity at the current price
- Swap USDG → SPYno liquidity at the current price
- Add, then remove liquiditycame back whole
pool 0xf1c82b364a2fcebff3783af916f84f88484f8e9f6cbe7189ab6d893a9f1e0bf6
Read from the bytecode
- Code size
- 22,127 bytes
- Owner
- 0xC9e399dDc211Dc16207612B29F69c8429903A794
- 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.
- 0xe3d15324 postPhi
- 0xf2fde38b transferOwnership
- 0xf5dcc069 feeAccrual
- 0xfa074d03 cross
- 0xe1b4af69 afterDonate
- 0xe23609d5 actionPending
- 0xe30c3978
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 swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
- After swap. Runs after every swap.
pendingOwner
0xd12cd48c crossLeg0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xcdf398c7 applyParams0xcfd032e7 PHI_MIN_INTERVAL0xcff0ab96 params0xc2139a7a proposeDiscount0xc21c10e4 proposeParams0xc4e833ce getHookPermissions0xb6a8b0fa beforeDonate0xb8e9ca86 MAX_PHI_STEP_BPS0xb9bacd00 pendingParams0x8da5cb5b owner0x9f063efc afterAddLiquidity0xb47b2fb1 afterSwap0x748747e6 setKeeper0x79ba5097 acceptOwnership0x7dc0d1d0 oracle0x6acae824 pendingDiscount0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x569d24c5 MAX_PHI_BPS0x575e24b4 beforeSwap0x6836d11c PARAM_DELAY0x390947cf MAX_DISCOUNT_BPS0x4f1c4dbf MIN_PHI_BPS0x4f373579 postGap0x2f006f8d crossReference0x2f74240d setCross0x37587f80 configurePool0x27142c51 quote0x2b7094c6 callMarketOvernight0x2dbaca4d phiPostedAt0x1ff02931 crossReopen0x21d0ee70 beforeRemoveLiquidity0x259982e5 beforeAddLiquidity0x0c6a4875 crossFee0x16c38b3c setPaused0x1ad31615 poolGap0x02909e5e applyDiscount0x075af248 setCallMarket0x0885f732 poolConfig