Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,361,281
0x0bA5…40C4
The eight checks
3 pools use this hook, the first one 51 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.
- 03caution
LPs can get outTaking liquidity straight back out lost 0.15%.
- 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 0x343fe2Db249f6F4C88996D12a1D59d11Fcb06731. Owner-style functions: claimFees, grantRole, unpause, blockedRouters, blockedOrigins, paused.
- 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 51 days.
Measured at block 93,361,281. 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 & 0x3fff0x00c4 · 00000011000100
- 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 / Monkey
fee dynamic, now 0%- Swap ETH → Monkeyno liquidity at the current price
- Swap Monkey → ETHno liquidity at the current price
- Add, then remove liquiditylost 0.15%
pool 0x1c491f33bfaa6f2c77daf162fc4b1b4b29356961d7ffd1b744ed608c8b9bba14
Read from the bytecode
- Code size
- 18,963 bytes
- Owner
- 0x343fe2Db249f6F4C88996D12a1D59d11Fcb06731
- 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.
- 0x01ffc9a7 supportsInterface
- 0x022d63fb defaultAdminDelayIncreaseWait
- 0x07311283 accruedFees
- 0x0aa6220b rollbackDefaultAdminDelay
- 0x0be6e2bf treasuryDelay
- 0x13b21b17 unknown
- 0x15a0ea6a
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.
- After swap returns delta. Can take part of what you get out of every swap.
claimFees
0x181e8653 unknown0x18ee69da unknown0x1d10e450 unknown0x21d0ee70 beforeRemoveLiquidity0x248a9ca3 getRoleAdmin0x24ea54f4 GUARDIAN_ROLE0x259982e5 beforeAddLiquidity0x264e97e0 isTrustedRouter0x2ed6b75d pendingTreasury0x2f2ff15d grantRole0x31fa9dba unknown0x36331c8f TIER_COUNT0x36568abe renounceRole0x37c9d385 unknown0x3ebabb0f unknown0x3f4ba83a unpause0x3ffde8fd unknown0x4374080d blockedRouters0x4c7ac03f lpShareBps0x4eba8678 feeConfigVersion0x5241bc0f unknown0x543f99a8 scheduleTreasury0x56f949b4 blockedOrigins0x56ffc61a unknown0x575e24b4 beforeSwap0x595ed5ef unknown0x5974d179 unknown0x5a9ae639 unknown0x5c975abb paused0x5e4eec0e unknown0x5fbbc0d2 getFeeConfig0x606003e8 HOOK_VERSION0x61d027b3 treasury0x61fbecb5 pendingTreasuryExecutableAt0x634e93da beginDefaultAdminTransfer0x649a5ec7 changeDefaultAdminDelay0x6720a1d1 unknown0x67f5a4ed unknown0x6aa7c8fd unknown0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x7235c4b3 unknown0x77688937 unknown0x778836b3 unknown0x7a0bba8d ROUTE_MANAGER_ROLE0x7a142940 unknown0x7b051638 unknown0x7bc1a295 unknown0x7c925e14 unknown0x8456cb59 pause0x84ef8ffc defaultAdmin0x8a21cba1 unknown0x8b168a1c unknown0x8b2bd056 unknown0x8b531bec unknown0x8c3a0aba unknown0x8c8b6b82 setLpShareBps0x8cc875c5 PPM_DENOMINATOR0x8da5cb5b owner0x8de94ff0 MAX_TAX_PPM0x8f76f02d MAX_ADMIN_TRANSFER_DELAY0x903a85b8 unknown0x91d14854 hasRole0x928d1a6f unknown0x94168af8 swapCount0x97d6fe6d unknown0x9d44b578 unknown0x9e3c2e88 unknown0x9e5a5906 executeTreasuryChange0x9f063efc afterAddLiquidity0xa0a2fca1 unknown0xa1eda53c pendingDefaultAdminDelay0xa217fddf DEFAULT_ADMIN_ROLE0xa27349dc unknown0xa3fbac64 unknown0xa4b29620 isWhitelistedRouter0xa4d19feb CONFIG_ROLE0xacb364e9 unknown0xb3165ed2 cancelTreasuryChange0xb47b2fb1 afterSwap0xb4fd1a3e unknown0xb6a8b0fa beforeDonate0xb8d80fcb unknown0xbc44b018 unknown0xbe1bea8c unknown0xbf432846 unknown0xc4e833ce getHookPermissions0xcc8463c8 defaultAdminDelay0xce382d01 recoverSurplus0xcefc1429 acceptDefaultAdminTransfer0xcf6eefb7 pendingDefaultAdmin0xd2f777b8 unknown0xd451986f unknown0xd547741f revokeRole0xd602b9fd cancelDefaultAdminTransfer0xd9d38cd7 unknown0xdb950c0e unknown0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe13dc201 unknown0xe1a45218 BPS_DENOMINATOR0xe1b4af69 afterDonate0xe4aa979a unknown0xe63ab1e9 PAUSER_ROLE0xe69afd0b MAX_TREASURY_DELAY0xeacc9b20 unknown0xef78f42a unknown0xf09e590a unknown0xf454abb9 unknown0xfdccefbe MIN_ADMIN_TRANSFER_DELAY