Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,976,209
0xb216…60C8
The eight checks
17 pools use this hook, the first one 73 d ago.
- 01caution
Permissions that touch your moneyThe address enables before swap returns delta. The hook is allowed to take; the next two checks measure whether it does.
- 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 switchNo owner() but it has setProgramConfig, claim, transferProgramOwnership, setRecipient, setProgramOperator.
- 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 record17 pools over 73 days.
Measured at block 92,976,209. 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 & 0x3fff0x20c8 · 10000011001000
- 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 / HNY
fee 1%- Swap ETH → HNYnothing taken
- Swap HNY → ETHnothing taken
- Add, then remove liquiditycame back whole
pool 0x872778370dfcd21b41f9ebb70e0999d697e7e8cf544f8d7a6c8b16d2fa2b1799
ETH / BURN
fee 1%- Swap ETH → BURNnothing taken
- Swap BURN → ETHnothing taken
- Add, then remove liquiditycame back whole
pool 0x223a4e9102578b85b9745011d4fab62729adb2d3c8dd817d978da7b911dcbaaf
Read from the bytecode
- Code size
- 23,465 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- present
- SELFDESTRUCT
- absent
- Outside calls
- 19
- 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.
- 0x01099984 harvest
- 0x16b3e9bb setProgramConfig
- 0x1e83409a claim
- 0x286e08f0 donate
- 0x46a7ecb2 executePump
- 0x473ca926 programOf
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.
- Before swap returns delta. Can take part of what you put into a swap, or change how much is swapped.
0x4c95a848
addLiquidityAdvanced
0x4fe6b80b obligationOf0x569a2d7d parkedDirectOf0x575e24b4 beforeSwap0x578ea4a0 initPot0x5f98872e executeHarvest0x69f99990 removeProgramLiquidity0x6ec9a743 transferProgramOwnership0x71246487 setRecipient0x7639bc1e setProgramOperator0x7e03657d addLiquidity0x83ea96a9 parkedOf0x91dd7346 unlockCallback0xac4e4054 REQUIRED_HOOK_FLAGS0xacbf9f16 addProgramLiquidity0xb47b2fb1 afterSwap0xc5afbcb4 quotePump0xc66f3cb4 potOf0xd2ac2d8a heldOf0xd2d5f19e launchPool0xd7b636e9 quoteShield0xd7ca239a flushDirect0xdc98354e beforeInitialize0xe148b275 executeCompound