Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,239,485
0x8b2C…E840
The eight checks
4 pools use this hook, the first one 86 d ago.
- 01pass
Permissions that touch your moneyNone of the permissions that let a hook take from swaps or from LPs are switched on.
- 02pass
What it takes from a swapA swap through it pays the pool fee and nothing else.
- 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 1%, written in the pool key.
- 05caution
No one holds the switchOwned by 0xA1BEc7917d9830bE664454d6b87511886279d013. Owner-style functions: setTreasury, transferOwnership, setRouter, claimCreatorFees, collectLpFees, withdrawProtocolFees.
- 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 record4 pools over 85 days.
Measured at block 93,239,485. 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 & 0x3fff0x2840 · 10100001000000
- 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 / D
fee 1%- Swap ETH → Dnothing taken
- Swap D → ETHnothing taken
- Add, then remove liquiditydeposit refused: LiquidityLockedPreBond
pool 0xfb7801cefc4ad452acb4a89212fd5aced210a87785e2016617c50f1d29c87061
Read from the bytecode
- Code size
- 22,148 bytes
- Owner
- 0xA1BEc7917d9830bE664454d6b87511886279d013
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 22
- 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.
- 0xf0f44260 setTreasury
- 0xf2fde38b transferOwnership
- 0xf887ea40 router
- 0xdcee10db curveProgress
- 0xdd1b9c4a POOL_FEE
- 0xefbe8fd1 createToken
- 0xc0d78655 setRouter
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.
- After swap. Runs after every swap.
0xd6ae6e44 claimCreatorFees0xd98b2f5c quoteSell0xdc4c90d3 poolManager0xdc98354e beforeInitialize0x98973e29 collectLpFees0x9f181b5e tokenCount0xb47b2fb1 afterSwap0xb95ed06f priceOf0xbf04b8a1 graduationFeeBps0x8652edf9 poolKeyOf0x8795cccb withdrawProtocolFees0x8da5cb5b owner0x9016af09 creatorFees0x91dd7346 unlockCallback0x61d027b3 treasury0x634282af allTokens0x6d571291 curveStates0x715018a6 renounceOwnership0x7c8ae45f curveLiquidity0x449554f7 finalizeGraduation0x46ca626b TICK_SPACING0x50978417 sqrtLowerX960x55b812a8 tickUpper0x59c4f905 tickLower0x2138a4c0 curveSupply0x259982e5 beforeAddLiquidity0x29827826 creatorFeeShareBps0x2cc3dc6e curves0x30040054 poolIdOf0x0d7a94f6 quoteBuy0x0f277f56 sqrtUpperX960x14fc6393 tokensPage0x18160ddd totalSupply0x1ad8b03b protocolFees0x79cc6790 burnFrom0x95d89b41 symbol0xa9059cbb transfer0xdd62ed3e allowance0x313ce567 decimals0x42966c68 burn0x70a08231 balanceOf0x095ea7b3 approve0x23b872dd transferFrom0x02669b52 launchpad0x03ee438c metadataURI0x06fdde03 name