Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,889,398
0x8D34…25dc
The eight checks
300 pools use this hook, the first one 46 d ago.
- 01caution
Permissions that touch your moneyThe address enables 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 0xB8A70b4d1547bf6193bd67A73F4F98ea9FD0A973. Owner-style functions: transferOwnership, setInitialPrice, setFeeDistribution, setFlaunch, setReferralEscrow, setFeeCalculator.
- 06caution
The code cannot changeThe bytecode contains DELEGATECALL.
- 07pass
Only the PoolManager can call itEach callback refused a call that did not come from the PoolManager.
- 08pass
Track record300 pools over 46 days.
Measured at block 92,889,398. 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 & 0x3fff0x25dc · 10010111011100
- 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.
flETH / HOTDOG
fee 0%- Swap flETH → HOTDOGno liquidity at the current price
- Swap HOTDOG → flETHno liquidity at the current price
- Add, then remove liquiditycame back whole
pool 0xcd7b765233d3e5ba32e9c5ddb85c16d749b6dc5d485b53fe76c4a19d586393b8
Read from the bytecode
- Code size
- 23,479 bytes
- Owner
- 0xB8A70b4d1547bf6193bd67A73F4F98ea9FD0A973
- Proxy
- no
- DELEGATECALL
- present
- SELFDESTRUCT
- absent
- Outside calls
- 30
- 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.
- 0xf04e283e completeOwnershipHandover
- 0xf2fde38b transferOwnership
- 0xfee81cf4 ownershipHandoverExpiresAt
- 0xff3575e4 getFlaunchingMarketCap
- 0xdf81740e setInitialPrice
- 0xe1b4af69 afterDonate
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.
- After add liquidity. Runs after each deposit.
- 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.
0xe7d529d0 initialPoolTick0xec876d71 getFlaunchingFee0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xddb475d5 poolFees0xdddfecf5 flayGovernance0xc4e833ce getHookPermissions0xcd141112 internalSwapPool0xd3bff717 setFeeDistribution0xb6a8b0fa beforeDonate0xba3e69b7 bidWall0xbe721505 setFlaunch0xc29c945b MAX_PROTOCOL_ALLOCATION0xb00eb9fe feeCalculator0xb3b42795 getPoolFeeDistribution0xb47b2fb1 afterSwap0x91dd7346 unlockCallback0x9f063efc afterAddLiquidity0xa87277dd setReferralEscrow0xad49d66e closeBidWall0x8c66d04f setFeeCalculator0x8da5cb5b owner0x8f2bdf75 referralEscrow0x7907addf flaunchesAt0x7ba42efa setCreatorFeeAllocation0x7dc0d1d0 oracle0x84aa1da0 flaunchContract0x715018a6 renounceOwnership0x74d5d208 flaunch0x75d252a5 actionManager0x55d1cb60 poolKey0x575e24b4 beforeSwap0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x4b8775f2 pairedTokenRegistry0x4ed0f0f5 setPoolFeeDistribution0x54d1f13d cancelOwnershipHandover0x299d532e MIN_DISTRIBUTE_THRESHOLD0x320e0fad pairedTokenBidWallThreshold0x3e38b378 pairedToken0x4875cbb8 feeSplit0x2423028c setProtocolFeeDistribution0x25692962 requestOwnershipHandover0x259982e5 beforeAddLiquidity0x0cf0957a flaunch0x15200ca1 pairedTokenFeeEscrow0x1d0806ae initialPrice0x21d0ee70 beforeRemoveLiquidity0x01a2cae8 feeExemptions0x09276ea4 notifier0x0cd02239 creatorFee