Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,145,088
0x07f7…6fdc
The eight checks
6 pools use this hook, the first one 89 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.
- 02n/a
What it takes from a swapNo pool with liquidity to swap through yet.
- 03pass
LPs can get outLiquidity added and removed in the same block came back whole.
- 04pass
The fee is the feeA fixed fee of 0%, written in the pool key.
- 05caution
No one holds the switchOwned by 0x4e6071c2Ea2BE0B6603992E71801a6BD07e881Df. Owner-style functions: setProtocolFeeDistribution, setFairLaunchFeeCalculator, setPoolFeeDistribution, setFeeCalculator, setReferralEscrow, setFlaunch.
- 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 record6 pools over 89 days.
Measured at block 93,145,088. 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 & 0x3fff0x2fdc · 10111111011100
- 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 / DAWN
fee 0%- Swap WETH → DAWNno liquidity at the current price
- Swap DAWN → WETHno liquidity at the current price
- Add, then remove liquiditycame back whole
pool 0xcc99400093bf77a74f26dae5a498e726391a8cf874b25e8fa8c403d5f428d8c6
Read from the bytecode
- Code size
- 24,559 bytes
- Owner
- 0x4e6071c2Ea2BE0B6603992E71801a6BD07e881Df
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 34
- 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.
- 0x01a2cae8 feeExemptions
- 0x05f77c6f flaunch
- 0x09276ea4 notifier
- 0x1d0806ae initialPrice
- 0x21d0ee70 beforeRemoveLiquidity
- 0x2423028c setProtocolFeeDistribution
bit 4After donatebit 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 add liquidity. Runs after each deposit.
- Before remove liquidity. Can refuse a withdrawal. LPs may not get out.
- After remove liquidity. Runs after each withdrawal.
- Before swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
- After swap. Runs after every swap.
- After donate. Runs after a donation to LPs.
- 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.
0x25692962 requestOwnershipHandover0x259982e5 beforeAddLiquidity0x299d532e MIN_DISTRIBUTE_THRESHOLD0x38b1e700 setFairLaunchFeeCalculator0x4875cbb8 feeSplit0x4ed0f0f5 setPoolFeeDistribution0x54d1f13d cancelOwnershipHandover0x55d1cb60 poolKey0x575e24b4 beforeSwap0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x71c4ddb0 getFeeCalculator0x75d252a5 actionManager0x7907addf flaunchesAt0x84aa1da0 flaunchContract0x8c66d04f setFeeCalculator0x8da5cb5b owner0x8f2bdf75 referralEscrow0x91dd7346 unlockCallback0x94e1cf96 fairLaunch0x9f063efc afterAddLiquidity0xa1dd2d91 fairLaunchFeeCalculator0xa87277dd setReferralEscrow0xad49d66e closeBidWall0xb00eb9fe feeCalculator0xb3b42795 getPoolFeeDistribution0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xba3e69b7 bidWall0xbe721505 setFlaunch0xc29c945b MAX_PROTOCOL_ALLOCATION0xc4b7de97 feeEscrow0xc4e833ce getHookPermissions0xd3bff717 setFeeDistribution0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xddb475d5 poolFees0xdddfecf5 flayGovernance0xdf81740e setInitialPrice0xe1758bd8 nativeToken0xe1b4af69 afterDonate0xec876d71 getFlaunchingFee0xf04e283e completeOwnershipHandover0xf2fde38b transferOwnership0xfccc2813 BURN_ADDRESS0xfee81cf4 ownershipHandoverExpiresAt0xff3575e4 getFlaunchingMarketCap