Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,974,283
0xF972…00Cc
The eight checks
18 pools use this hook, the first one 48 d 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.
- 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.
- 04pass
The fee is the feeA fixed fee of 0%, written in the pool key.
- 05caution
No one holds the switchOwned by 0x572A5d728a06aaf04e80578977241064885eCF36. Owner-style functions: setPlatformFee, setMakerRecipients, withdraw, setGuard, withdrawAll, setDefaultBurnQueueThreshold.
- 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 record18 pools over 48 days.
Measured at block 92,974,283. 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 & 0x3fff0x00cc · 00000011001100
- 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 / KWILL
fee 0%- Swap ETH → KWILLno liquidity at the current price
- Swap KWILL → ETHno liquidity at the current price
- Add, then remove liquiditycame back whole
pool 0xcc363a7992a182d0d9d244a98952be1e0b6bebcb5d776292e68befd7793127fb
Read from the bytecode
- Code size
- 15,631 bytes
- Owner
- 0x572A5d728a06aaf04e80578977241064885eCF36
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 14
- 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.
- 0x0809c384 MAKER_CUT_FLOOR_BPS
- 0x0926a309 wobbBurnBps
- 0x12e8e2c3 setPlatformFee
- 0x159f318d guardWindowBuyVolume
- 0x21005407 founderSellHours
- 0x211dc32d earned
- 0x22dcd13e platformFeeBps
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- 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.
0x3955ee37 registerToken0x3a546589 feeConfigs0x3e9d6690 WOBB_POOL_FEE0x431a9caa MAX_TOTAL_FEE_BPS0x4615b0dc setMakerRecipients0x4a78b880 MAX_FOUNDER_SELL_EXTRA_BPS0x51cff8d9 withdraw0x563f6dbe guardExtraBps0x575e24b4 beforeSwap0x5ca79d56 setGuard0x61d027b3 treasury0x6568a279 withdrawAll0x65d1dfdf MAX_ANTI_SNIPE_EXTRA_BPS0x6637e38c BPS_DENOM0x664fab4c founderSellVolume0x6e9444d6 MAX_MAKER_TAX_BPS0x6ef09827 guardBlocks0x715018a6 renounceOwnership0x74cb9bdb windowQuoteSpent0x79ba5097 acceptOwnership0x7e54092e wobbBurnThreshold0x7fba16ed setDefaultBurnQueueThreshold0x80c6ad6e burnQueue0x81abc047 setMakerCut0x88e172ee MAX_PLATFORM_BURN_BPS0x8a40bf80 recipientsLocked0x8a5f443b totalBuyVolume0x8d01513c MAX_PLATFORM_FEE_BPS0x8da5cb5b owner0x92706505 MAX_MAKER_RECIPIENTS0x92ffef5e defaultBurnQueueThreshold0x986c7c76 trustSignal0x9e092bdc wobbBurnQueue0xa3580439 WOBB_TICK_SPACING0xa7f8a5e2 yieldVault0xb47b2fb1 afterSwap0xbe9ca9e1 totalSellVolume0xc45a0155 unknown0xc4e833ce getHookPermissions0xc942d0f0 makerCutBps0xc99a3a3f lockRecipients0xce2153cc founderSellExtraBps0xd36d49aa setBurnQueueThreshold0xdc4c90d3 poolManager0xe2199730 getMakerRecipients0xe30c3978 pendingOwner0xeb7f93da platformBurnBps0xeea5f86e setFounderSell0xf0f44260 setTreasury0xf2fde38b transferOwnership0xfc27e167 setWobbBuyback