Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,458,684
0x63A7…68cC
The eight checks
1 pool use this hook, the first one 21 h 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 1.25% of each swap on top of the pool fee.
- 03n/a
LPs can get outClosed to outside LPs: only the hook's own liquidity is in the pool.
- 04caution
The fee is the feeIts pools use a dynamic fee that the hook sets before every swap. It stands at 0% now and can change.
- 05caution
No one holds the switchOwned by 0x6569E27A95a6A3E92A311B4Cc6600fed56aA50A2. Owner-style functions: transferOwnership.
- 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.
- 08caution
Track record1 pool, first seen 0 days ago.
Measured at block 93,458,684. 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 & 0x3fff0x28cc · 10100011001100
- 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.
USDG / TEST
fee dynamic, now 0%- Swap USDG → TESThook takes 1.25%
- Swap TEST → USDGtoo little liquidity to measure
- Add, then remove liquiditydeposit refused: LiquidityClosed
pool 0x6863ce533fe2583ebbe633008679e03b84e043c330686df696500fc382c81219
Read from the bytecode
- Code size
- 18,032 bytes
- Owner
- 0x6569E27A95a6A3E92A311B4Cc6600fed56aA50A2
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 4
- 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.
- 0xf3d2780f GRADUATION_TOKENS_SOLD
- 0xf5309fc8 dividendKey
- 0xfc3d497f takeReferral
- 0xfc44dcad takeProtocolShare
- 0xe1b4af69 afterDonate
- 0xe30c3978 pendingOwner
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 add liquidity. Can refuse a deposit, or only let some addresses provide liquidity.
- 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.
0xe87be499
referralOwed
0xf2fde38b transferOwnership0xdc98354e beforeInitialize0xdf3225ac REFERRAL_SHARE_BPS0xdf3d5eae GRADUATION_QUOTE_RAISED0xe0b01bac poolState0xcef374aa MIN_TX_MOVE_TICKS0xd7b96d4e locker0xdc726205 rates0xb7793601 FIELD_TAX_END_AT0xbdf1d612 BUYBACK_SHARE_BPS0xca266dfe poolKey0xcb7e9057 dispatcher0xaeb23101 FIELD_MAX_BUY0xb131503a FIELD_MAX_TX_MOVE0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0x9f063efc afterAddLiquidity0x9fe44574 takePending0xa6547158 FIELD_SELL_TAX0xad5c4648 WETH0x8c5cc0fc FIELD_POST_SELL_TAX0x8da5cb5b owner0x8e0fa601 MAX_TX_MOVE_TICKS0x79ba5097 acceptOwnership0x81a1a825 registerPool0x89f69f01 HOOK_FEE_BPS0x8b7b23ee FEES0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x74905cfb txMoveBand0x46ca626b TICK_SPACING0x575e24b4 beforeSwap0x5d3cf61a restorePending0x62308e85 POOL_MANAGER0x36d5b2f1 FIELD_VOLATILITY_FEE0x3884d635 airdrop0x3a6d04e3 protocolShare0x22219f52 FIELD_RELEASE_LIMITS0x249d39e9 BPS0x259982e5 beforeAddLiquidity0x2f4c6d98 FIELD_POST_BUY_TAX0x186dd081 FIELD_BUY_TAX0x1983dff7 devBuy0x21d0ee70 beforeRemoveLiquidity0x21e15bda FIELD_ANTI_SNIPE0x0885f732 poolConfig0x0d1fd58e feeState0x1459457a initialize0x1808eeb8 pending0x02669b52 launchpad0x03394db2 CREATOR_FEE_SHARE_BPS