Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,297,921
0x6291…00cc
The eight checks
4 pools use this hook, the first one 41 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.
- 02caution
What it takes from a swapIt takes 2.50% of each swap on top of the pool fee.
- 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 switchNo owner() but it has claimHolderFees, sweepPlatformFees, BURN_ADDRESS.
- 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 record4 pools over 41 days.
Measured at block 93,297,921. 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 & 0x3fff0x00cc · 00000011001100
- 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 / THER
fee 0%- Swap ETH → THERhook takes 1.00%
- Swap THER → ETHhook takes 1%
- Add, then remove liquiditycame back whole
pool 0xbf020e447790889146e9d9fe87e4012e06b07c88474381a595d0e78b62fa3a40
USDG / PEPE
fee 0%- Swap USDG → PEPEhook takes 2.50%
- Swap PEPE → USDGhook takes 2.50%
- Add, then remove liquiditycame back whole
pool 0xe24692bb51e3816d594432bb4a9f8f1be0c9cadb0c90b4002ceb30c7bdbee85d
Read from the bytecode
- Code size
- 18,338 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 19
- 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.
- 0x022ee559 lifetimeCreatorFees
- 0x07fd7813 unknown
- 0x08d8391e unknown
- 0x109e62ea totalPendingFees
- 0x17e61afd claimHolderFees
- 0x1968b75d unknown
- 0x1c1589e5 unknown
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- 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.
0x21d0ee70
beforeRemoveLiquidity
0x259982e5 beforeAddLiquidity0x2975067d MAX_CREATOR_TAX_BPS0x2b507df8 configurator0x2f22b8a2 pendingHolderFees0x30c38215 executeBuyback0x30c7849c poolQuoteCurrency0x32178da8 onTokenTransfer0x33fcc15f unknown0x36148ca5 holderShareBps0x37107d99 sweepPlatformFees0x4673d253 unknown0x476adf3b poolToken0x478222c2 feeVault0x4b66031d unknown0x4da1afb1 unknown0x5146fcd5 pendingPlatformFees0x5269dd69 buybackThreshold0x539aa77f PLATFORM_FEE_BPS0x54fcf014 unknown0x5708f30e unknown0x575e24b4 beforeSwap0x5acb5082 configure0x5e05cd59 MAX_LIMIT_BPS0x5e1fa619 unknown0x6c2bbe7e afterRemoveLiquidity0x6f28507c TOTAL_FEE_BPS0x6f3b2d05 unknown0x6fe7e6eb afterInitialize0x7b103999 registry0x7d2ba37e unknown0x86e97989 MIN_MAX_WALLET_BPS0x8772a23a configured0x89c1467f unknown0x8f211c17 holderClaimable0x918a5b1f unknown0x91dd7346 unlockCallback0x9ee366f8 holderClaimed0x9f063efc afterAddLiquidity0xa6a7b4ff launchCreator0xaf3938e4 unknown0xaf7fdf04 unknown0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xb8e0f48f unknown0xb9ec465b unknown0xc0391ed9 rotateTreasury0xc21c069d unknown0xc4b6a141 unknown0xc4e833ce getHookPermissions0xc58ae91f unknown0xc598b2f9 pendingCreatorFees0xc9fab349 unknown0xcc3cbd2a CREATOR_FEE_BPS0xcfec010c treasuryAdmin0xd0bb1a53 unknown0xd2f076cc unknown0xd76b5e3f unknown0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdecc31af unknown0xe138818c platformTreasury0xe1b4af69 afterDonate0xe36011eb unknown0xe4d7fd20 unknown0xe7a2652c unknown0xea7e6ab2 unknown0xeff159e3 unknown0xf39fe865 unknown0xfccc2813 BURN_ADDRESS0xfd71aabe MIN_MAX_BUY_BPS