Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,920,423
0x32f6…60Cc
The eight checks
46 pools use this hook, the first one 73 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.30%, written in the pool key.
- 05caution
No one holds the switchOwned by 0x7B2DaF7F696bB844C7786693062D6619D1858cC9. Owner-style functions: setMaxSideBps, setPoolPlatformBps, setLauncher, claim, setPlatform, setAdmin.
- 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 record46 pools over 72 days.
Measured at block 92,920,423. 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 & 0x3fff0x20cc · 10000011001100
- 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 / BRA
fee 0.30%- Swap ETH → BRAno liquidity at the current price
- Swap BRA → ETHno liquidity at the current price
- Add, then remove liquiditycame back whole
pool 0xa025160f9323a2f5cc5e05318ef66320f9b090dbc023bc541d6801c181885d63
Read from the bytecode
- Code size
- 19,697 bytes
- Owner
- 0x7B2DaF7F696bB844C7786693062D6619D1858cC9
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 10
- 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.
- 0x06c29f11 referralSplitter
- 0x082bebf1 tierDivisor
- 0x0d4dbd1d platformBpsOf
- 0x10be0341 maxSideBps
- 0x1220ef1f accruedEth
- 0x19379038 setMaxSideBps
- 0x1d0ec52f MAX_SPLIT_RECIPIENTS
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 swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
- After swap. Runs after every swap.
- 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.
0x2bca33e9 MAX_TRADING_DELAY0x31277ba0 adminSetAutoThreshold0x32b1f5b9 setPoolPlatformBps0x404c5434 pushOwed0x40fd6d98 adminSetRewardsBps0x4a774941 MAX_LAUNCH_TAX_BPS0x4bde38c8 platform0x4be27441 setLauncher0x4e71d92d claim0x4f28f630 tierBase0x52f9adb4 adminSetRates0x56f93f37 configurePool0x575e24b4 beforeSwap0x5cd37b3f MAX_LAUNCH_TAX_SECS0x60c6be1b poolRefSink0x61b4fc7f addEdge0x6945c5ea setPlatform0x6ef61607 configOf0x6fb9389a MAX_BUY_LOCK_SECS0x704b6c02 setAdmin0x715018a6 renounceOwnership0x71a43408 setAutoSend0x79ba5097 acceptOwnership0x8997235c effectiveBps0x8da5cb5b owner0x91b31f13 refToken0x91dd7346 unlockCallback0x999699de setMaxBuy0xa04c294b setAutoThreshold0xa262f5f8 claimTo0xa87d3374 adminSetAutoSend0xae5084d7 setReferralSplitter0xb47b2fb1 afterSwap0xb5c7d44a MAX_PLATFORM_BPS0xb92be3fe splitsOf0xbde5a650 accruedPlatformEth0xbf9b58cf adminSetCreatorSplit0xc4e833ce getHookPermissions0xcc718f76 config0xcf7568b7 setRewardsBps0xd48a4846 launcherCount0xdab0d529 autoDistribute0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdd1b9c4a POOL_FEE0xdf18e047 owed0xe30c3978 pendingOwner0xe978bdd7 setTierParams0xea40f8fe distribute0xebbd8172 MAX_SIDE_BPS_LIMIT0xef176059 setRates0xf2fde38b transferOwnership0xf3d507a3 creatorPoolBpsOf0xf851a440 admin0xf8bc6db2 setTokenCreator0xfa275e11 isLauncher0xfd71aabe MIN_MAX_BUY_BPS