Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,113,529
0xC361…e000
The eight checks
8 pools use this hook, the first one 60 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.
- 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 setLaunchTerms, transferFrom, updateMetadata, transfer.
- 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 record8 pools over 59 days.
Measured at block 93,113,529. 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 & 0x3fff0x2000 · 10000000000000
- 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 / BOOST
fee 1%- Swap ETH → BOOSTnothing taken
- Swap BOOST → ETHnothing taken
- Add, then remove liquiditycame back whole
pool 0x750d1dae0576be651dacbbfee9320079da86e48c4a53062c950c538901db71dd
ETH / PAWPAWPAW
fee 1%- Swap ETH → PAWPAWPAWnothing taken
- Swap PAWPAWPAW → ETHnothing taken
- Add, then remove liquiditycame back whole
pool 0x14e2b24cdc70d6f53d36f24e6a97800d4d4f9fd4377e6acc9465902e58d62432
Read from the bytecode
- Code size
- 23,369 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 15
- 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.
- 0x0646cdce predictTokenAddress
- 0x19f37361 isToken
- 0x1f69565f getTokenInfo
- 0x427f91a6 tokenIndex
- 0x44f48ddd createToken
- 0x46ca626b TICK_SPACING
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.
0x494cfc6c
getTokens
0x4f64b2be tokens0x55d1cb60 poolKey0x5e3f2727 LP_FEE0x6cfd4ea7 initialLpQuote0x708666ad liquidityVault0x78a89567 getTokenCount0x7a26892b initialFdvNative0x8bc60bce poolTicks0x91dd7346 unlockCallback0x98aab22e startTick0xb152f6cf TOKEN_SUPPLY0xc45a0155 unknown0xc82e988d bootstrapTargetAmount0xd404b263 initialSqrtPriceX960xdc4c90d3 poolManager0xdc98354e beforeInitialize0xfd70b885 setLaunchTerms0x02d05d3f creator0x06bdfa88 telegramHandle0x06fdde03 name0x095ea7b3 approve0x18160ddd totalSupply0x23b872dd transferFrom0x313ce567 decimals0x325c9d5d updateMetadata0x3644e515 DOMAIN_SEPARATOR0x6afdd850 PERMIT20x70a08231 balanceOf0x7ecebe00 nonces0x84b0196e eip712Domain0x95d89b41 symbol0xa9059cbb transfer0xaba83150 imageUrl0xabb5ca09 websiteUrl0xc6a78818 twitterHandle0xd505accf permit0xdd62ed3e allowance