Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,418,740
0x18bd…6ACC
The eight checks
3 pools use this hook, the first one 35 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.
- 02caution
What it takes from a swapIt takes 3% of each swap 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 0xac3dc1c78Ab23161B6C5029E9638A6ceB1129ba7. Owner-style functions: transferPoolCreator, setOraclePaused, claimFees, setFeeSplits, CLAIMER_REWARD_BPS, setPlatformWallet.
- 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 record3 pools over 34 days.
Measured at block 93,418,740. 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 & 0x3fff0x2acc · 10101011001100
- 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.
WETH / FERG
fee 0%- Swap WETH → FERGhook takes 3.00%
- Swap FERG → WETHhook takes 3%
- Add, then remove liquiditydeposit refused: NotLauncher
pool 0xf16270dee007653ed1eace465f4648fb0eeb879ecffce5a4c88ba0b4a088bf96
WETH / FEG
fee 0%- Swap WETH → FEGhook takes 3.00%
- Swap FEG → WETHhook takes 3%
- Add, then remove liquiditydeposit refused: NotLauncher
pool 0x107054f2a3e15ab3385dd8c4d9a2b1ac4b1a9986f88d47fe321b15ca76d7e672
Read from the bytecode
- Code size
- 13,973 bytes
- Owner
- 0xac3dc1c78Ab23161B6C5029E9638A6ceB1129ba7
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 18
- 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.
- 0x09ba822e transferPoolCreator
- 0x17f7d399 HOLDER_REWARD_BPS
- 0x21d0ee70 beforeRemoveLiquidity
- 0x259982e5 beforeAddLiquidity
- 0x2b558983 setOraclePaused
- 0x3c4e094c
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 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.
addLauncher
0x3fc8cef3 weth0x464db76d registerPool0x4c4a3c25 stateView0x4effae80 claimFees0x4fb0c1e8 PERMISSION_MASK0x539aa77f PLATFORM_FEE_BPS0x575e24b4 beforeSwap0x5fb8b526 setFeeSplits0x647f9f12 _depositVaultCut0x6fe7e6eb afterInitialize0x7706ba52 oraclePaused0x792e0fb1 CLAIMER_REWARD_BPS0x7b6e864c oracleDisabled0x8831e9cf setPlatformWallet0x895becb5 MAX_FEE_SPLITS0x8be57131 _setVaultCreator0x8da5cb5b owner0x91dd7346 unlockCallback0x9466cb66 observe0x96f926b8 removeLauncher0xa4dc8f39 setStateView0xaf7aecb1 _depositHolderRewardErc200xb47b2fb1 afterSwap0xb5217bb4 pools0xb6a8b0fa beforeDonate0xb8d1452f setWeth0xb9165955 accruedFees0xc55ed851 poolLiquidity0xc6878f4e MAX_HOOK_FEE_BPS0xcaa86546 oracleMeta0xcc0d22cd REQUIRED_PERMISSIONS0xcdb61601 ORACLE_CARDINALITY0xd5f7658f HOOK_FEE_DEFAULT_BPS0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe1b4af69 afterDonate0xe4c7a464 getFeeSplits0xf2fde38b transferOwnership0xf6c78084 setOracleDisabled0xfa275e11 isLauncher0xfa2af9da platformWallet0xfe406a7d ORACLE_PERIOD