Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,298,868
0x2965…A0cC
The eight checks
4 pools use this hook, the first one 32 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 5% 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 1%, written in the pool key.
- 05caution
No one holds the switchOwned by 0x01b1A16ED6eb5a58A3742014D1971bCce5B96DC8. Owner-style functions: claim, setLaunchpad, setProtocolTaxShare, setRecipients, claimable, transferAdmin.
- 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 31 days.
Measured at block 93,298,868. 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.
MOMOWEB / TSLA
fee 1%- Swap MOMOWEB → TSLAhook takes 5%
- Swap TSLA → MOMOWEBhook takes 5.00%
- Add, then remove liquiditycame back whole
pool 0x50b3b0d5cc31806d3a146b5fd947d090999ad9c1466f31af253f6765eaf958a8
WETH / MOMOWEB
fee 1%- Swap WETH → MOMOWEBhook takes 3.00%
- Swap MOMOWEB → WETHhook takes 3%
- Add, then remove liquiditycame back whole
pool 0xdc49f5c3b0550c7196fed32224df7fdd52e16e99ae25d74779c0ac1e2d45cac2
Read from the bytecode
- Code size
- 11,039 bytes
- Owner
- 0x01b1A16ED6eb5a58A3742014D1971bCce5B96DC8
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 12
- 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.
- 0x02669b52 launchpad
- 0x0d77c6fe registerToken
- 0x10af8c84 lowerTax
- 0x20eda6d5 getRecipients
- 0x21c0b342 claim
- 0x21d0ee70 beforeRemoveLiquidity
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.
0x259982e5 beforeAddLiquidity0x36f4c0eb setLaunchpad0x43a19abe totalTaxCollected0x46732e4f setProtocolTaxShare0x51f783fd setRecipients0x575e24b4 beforeSwap0x5b064208 rewardBacklog0x5fd07da5 registerPool0x61d027b3 treasury0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x79ba5097 acceptOwnership0x8da5cb5b owner0x91dd7346 unlockCallback0x9f063efc afterAddLiquidity0xa18cd06c distribute0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xc2898f5e poolTax0xc4e833ce getHookPermissions0xd4570c1c claimable0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe1b4af69 afterDonate0xe30c3978 pendingOwner0xe3a0be18 MAX_PROTOCOL_TAX_SHARE0xe9ee6eeb transferAdmin0xf0f44260 setTreasury0xf1097725 distributeMany0xf2fde38b transferOwnership0xfad17eb6 accrued0xfc3fa966 protocolTaxShareBps