Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,146,273
0xCA2C…6888
The eight checks
7 pools use this hook, the first one 57 d ago.
- 01caution
Permissions that touch your moneyThe address enables before swap returns delta. The hook is allowed to take; the next two checks measure whether it does.
- 02n/a
What it takes from a swapNo pool with liquidity to swap through yet.
- 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 switchNo owner() but it has settlementReserveNative, transferFrom, transfersOpen, 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 record7 pools over 56 days.
Measured at block 93,146,273. 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 & 0x3fff0x2888 · 10100010001000
- 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 / BEASTINDUSTRY
fee 1%- Swap ETH → BEASTINDUSTRYno liquidity at the current price
- Swap BEASTINDUSTRY → ETHno liquidity at the current price
- Add, then remove liquiditydeposit refused: Unauthorized
pool 0xde0203defbc3311e097ff564d89f96704dfd9669229ae63b9e2391a69db48b07
Read from the bytecode
- Code size
- 24,220 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 21
- 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.
- 0x01ffc9a7 supportsInterface
- 0x05c5226e OPENING_VALUATION_NATIVE
- 0x06bfcec6 implementationVersion
- 0x117803e3 OWNER
- 0x149d32ed marketOpeningValuationNative
- 0x14a03426 targetSqrtPriceX96
- 0x158ef93e initialized
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 swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
- Before swap returns delta. Can take part of what you put into a swap, or change how much is swapped.
0x1bf16039 unknown0x1c18d4f9 DISPLAY_LIQUIDITY0x249d39e9 BPS0x259982e5 beforeAddLiquidity0x28c32069 getEffectiveLiquidity0x387bd4da marketForToken0x3ca4b36b VIRTUAL_DEPTH_NATIVE0x3d90f0f5 quoteCloseBonk0x403ebd03 storageVersion0x406f2a4b spotPriceNativePerCoinWad0x44d2e91b latestMarketForSubject0x46ca626b TICK_SPACING0x48d8b0ba getReserves0x4b6055bc tokenSurplus0x553a7a7b accruedProtocolFeesNative0x575e24b4 beforeSwap0x62308e85 POOL_MANAGER0x6f8dd6ed launchWithOpeningValuation0x78656822 totalNativeClaims0x7c9afb2b getBonkPosition0x7d12ce21 quoteOpenBonk0x7f5a7c7b hook0x8129fc1c initialize0x816aa495 unknown0x82dc7a4d spotValuationNative0x9089ad0e ENTRY_FEE_BPS0x91dd7346 unlockCallback0x93a93d68 executableSettlementCapacityNative0x950a5ff1 unattributedNativeClaims0x9c2d031e unknown0x9ef2b381 STORAGE_VERSION0xa70b9f0c EPOCH_DURATION0xa81507c5 settlementReserveNative0xa94b59ad syncPoolPrice0xadecd574 unknown0xb152f6cf TOKEN_SUPPLY0xc0d67a9f marketLaunchBlock0xc0e89ce6 unknown0xd22db9c9 marketForPool0xd55be8c6 MAX_FEE_BPS0xd8e81031 openBonk0xd95f6c73 conservedBonkInventory0xdc98354e beforeInitialize0xdd1b9c4a POOL_FEE0xe8ed885f closeBonk0xea27c1f9 fullCoinUnwindQuoteNative0xeb44fdd3 getMarket0xec979082 marketCount0xecddd92d launch0xfc20471c marketSettlementNetNative0x06fdde03 name0x095ea7b3 approve0x18160ddd totalSupply0x23b872dd transferFrom0x313ce567 decimals0x66fbb686 transfersOpen0x70a08231 balanceOf0x95d89b41 symbol0xa9059cbb transfer0xcbe66d0a openTransfers0xdd62ed3e allowance0xf46f16c2 MARKET