Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,364,587
0x4BBA…A000
The eight checks
3 pools use this hook, the first one 98 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 claimable, collect, withdraw, transferFrom, 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 record3 pools over 97 days.
Measured at block 93,364,587. 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 / OKAY
fee 0.05%- Swap ETH → OKAYnothing taken
- Swap OKAY → ETHnothing taken
- Add, then remove liquiditycame back whole
pool 0x614f1b9f58f7a9f497c80573b78893053f43590177f11415a9bd62028a3eabc5
ETH / TES
fee 1%- Swap ETH → TESnothing taken
- Swap TES → ETHnothing taken
- Add, then remove liquiditycame back whole
pool 0xc54b8090aee59774b3e0d55424fca333e35ef9e56ca6db4a3d9b9cbb11dc2c02
Read from the bytecode
- Code size
- 17,750 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 12
- 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.
- 0x12261ee7 permit2
- 0x16d9eefb lpFeeOf
- 0x184cfbab lockerOf
- 0x1f5ba264 roundingDustOf
- 0x21c099c8 poolKeyFor
- 0x2aefd857 LP_FEE_MEDIUM
- 0x2f14ae32 tickUpperOf
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.
0x30040054
poolIdOf
0x35a9e4df universalRouter0x4bc1bf14 DEFAULT_LP_FEE0x4e6b0bbe MAX_METADATA_URI_BYTES0x571fe4e3 getTokenBytecode0x634282af allTokens0x680c60c7 MAX_NAME_BYTES0x6bb135ba tickSpacingForFee0x7824407f tokenSupply0x791b98bc positionManager0x816c1c62 usedSalt0x8a4940f2 MAX_SYMBOL_BYTES0x8baf2ced LP_FEE_LOW0x977f4303 predictTokenAddress0x9b177c8e poolKeyFor0x9dd4c4ec initialSqrtPriceX96Of0xc59f7df4 deriveSalt0xc84f7749 maxRoundingDustExclusiveOf0xcdf46660 tickLowerOf0xcfb965e7 launch0xd66fd662 LP_FEE_HIGH0xdbb80e42 allTokensLength0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdea5c2e0 creatorOf0x9fa36cdc creatorFeeRecipient0xceefe5d1 positionTokenId0xd4570c1c claimable0xe5225381 collect0xf3f05313 totalCollected0xf940e385 withdraw0x03ee438c metadataURI0x06fdde03 name0x095ea7b3 approve0x18160ddd totalSupply0x23b872dd transferFrom0x313ce567 decimals0x3c130d90 tokenURI0x70a08231 balanceOf0x95d89b41 symbol0xa9059cbb transfer0xdd62ed3e allowance0xe8a3d485 contractURI