Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,393,056
0xa119…4044
The eight checks
3 pools use this hook, the first one 56 d ago.
- 01caution
Permissions that touch your moneyThe address enables 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.
- 04caution
The fee is the feeIts pools use a dynamic fee that the hook sets. It stands at 0% now and can change.
- 05caution
No one holds the switchOwned by 0x343fe2Db249f6F4C88996D12a1D59d11Fcb06731. Owner-style functions: PAUSER_ROLE, pause, changeDefaultAdminDelay, paused, unpause, grantRole.
- 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 record3 pools over 56 days.
Measured at block 93,393,056. 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 & 0x3fff0x0044 · 00000001000100
- 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.
SPY / USDG
fee dynamic, now 0%- Swap SPY → USDGno liquidity at the current price
- Swap USDG → SPYno liquidity at the current price
- Add, then remove liquiditycame back whole
pool 0xc2e176909d935643933fd875ca6585d1cf308e68e181107838ebf57e3f3de3bd
Read from the bytecode
- Code size
- 17,731 bytes
- Owner
- 0x343fe2Db249f6F4C88996D12a1D59d11Fcb06731
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 3
- 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.
- 0xe1b4af69 afterDonate
- 0xe63ab1e9 PAUSER_ROLE
- 0xe69afd0b MAX_TREASURY_DELAY
- 0xfdccefbe MIN_ADMIN_TRANSFER_DELAY
- 0xd602b9fd cancelDefaultAdminTransfer
- 0xdc4c90d3 poolManager
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- After swap. Runs after every swap.
- After swap returns delta. Can take part of what you get out of every swap.
0xdc98354e
beforeInitialize
0xe1a45218 BPS_DENOMINATOR0xcc8463c8 defaultAdminDelay0xcefc1429 acceptDefaultAdminTransfer0xcf6eefb7 pendingDefaultAdmin0xd547741f revokeRole0xb3165ed2 cancelTreasuryChange0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xc4e833ce getHookPermissions0x9f063efc afterAddLiquidity0xa1eda53c pendingDefaultAdminDelay0xa217fddf DEFAULT_ADMIN_ROLE0xa4d19feb CONFIG_ROLE0x8de94ff0 MAX_TAX_PPM0x8f76f02d MAX_ADMIN_TRANSFER_DELAY0x91d14854 hasRole0x9e5a5906 executeTreasuryChange0x8456cb59 pause0x84ef8ffc defaultAdmin0x8cc875c5 PPM_DENOMINATOR0x8da5cb5b owner0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x7bc1a295 unknown0x61fbecb5 pendingTreasuryExecutableAt0x634e93da beginDefaultAdminTransfer0x649a5ec7 changeDefaultAdminDelay0x6720a1d1 unknown0x5e4eec0e unknown0x5fbbc0d2 getFeeConfig0x606003e8 HOOK_VERSION0x61d027b3 treasury0x543f99a8 scheduleTreasury0x575e24b4 beforeSwap0x595ed5ef unknown0x5c975abb paused0x36876abb swapSequence0x37c9d385 unknown0x3f4ba83a unpause0x4eba8678 feeConfigVersion0x2ed6b75d pendingTreasury0x2f2ff15d grantRole0x36331c8f TIER_COUNT0x36568abe renounceRole0x21d0ee70 beforeRemoveLiquidity0x248a9ca3 getRoleAdmin0x24ea54f4 GUARDIAN_ROLE0x259982e5 beforeAddLiquidity0x0aa6220b rollbackDefaultAdminDelay0x0be6e2bf treasuryDelay0x15a0ea6a claimFees0x1d10e450 unknown0x01ffc9a7 supportsInterface0x022d63fb defaultAdminDelayIncreaseWait0x07311283 accruedFees