Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,240,380
0x03c6…CAcC
The eight checks
5 pools use this hook, the first one 68 d ago.
- 01caution
Permissions that touch your moneyThe address enables before remove liquidity, before swap returns delta, after swap returns delta. The hook is allowed to take; the next two checks measure whether it does.
- 02pass
What it takes from a swapIt takes 1% on top of the pool fee.
- 03n/a
LPs can get outClosed to outside LPs: only the hook's own liquidity is in the pool.
- 04pass
The fee is the feeA fixed fee of 0%, written in the pool key.
- 05caution
No one holds the switchOwned by 0x0Ac7861b51c333CdA56251077AF8cd2Bc5dAe961. Owner-style functions: setGraduationFdvWeth, setWarmupParams, setGraduationFdvUsd, setNoTerritory, setTreasury, transferOwnership.
- 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 record5 pools over 67 days.
Measured at block 93,240,380. 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 & 0x3fff0x0acc · 00101011001100
- 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 / WARCAT
fee 0%- Swap ETH → WARCAThook takes 1.00%
- Swap WARCAT → ETHhook takes 1%
- Add, then remove liquiditydeposit refused: LiquidityLocked
pool 0xcb959b0cc812dfc616af835a84280b2899f3e7e042d2b52f6f7a929388f71c65
Read from the bytecode
- Code size
- 9,043 bytes
- Owner
- 0x0Ac7861b51c333CdA56251077AF8cd2Bc5dAe961
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 9
- 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.
- 0x0968d299 setGraduationFdvWeth
- 0x1c32558b setWarmupParams
- 0x21d0ee70 beforeRemoveLiquidity
- 0x2576dabc warmupMaxBps
- 0x259982e5 beforeAddLiquidity
- 0x30040054
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- Before add liquidity. Can refuse a deposit, or only let some addresses provide liquidity.
- Before remove liquidity. Can refuse a withdrawal. LPs may not get out.
- 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.
poolIdOf
0x32a719c5 graduationFdvWeth0x35090838 setGraduationFdvUsd0x43ac807b warmupBought0x44e2eb31 registerPool0x575e24b4 beforeSwap0x61d027b3 treasury0x680e88b7 graduationFdvUsd0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x760690c4 DEV_BPS0x7738c832 graduationThresholdWeth0x78ba5bf1 ethUsdgPoolId0x7b103999 registry0x89f616b5 ethPriceUsdX60x8da5cb5b owner0x902d55a5 TOTAL_SUPPLY0x91dd7346 unlockCallback0x9a67430f treasuryFees0x9e30a5fa feesRecipientTotal0x9f063efc afterAddLiquidity0xa464a846 currentFdvWeth0xb47b2fb1 afterSwap0xb5217bb4 pools0xb6a8b0fa beforeDonate0xbf333f2c FEE_BPS0xbfe10928 distributor0xc1c2dbf7 holdersPending0xc45a0155 unknown0xce9affae feesDevTotal0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdf486cc4 setNoTerritory0xe1b4af69 afterDonate0xe4b2ab69 flushHolders0xe70e45a4 noTerritory0xf0f44260 setTreasury0xf147efeb devFees0xf2fde38b transferOwnership0xf86c9e9a withdrawTreasury0xf92576b1 claimDevFees0xfc47e80d setEthUsdgPool0xfe5668d3 warmupDuration