Likely custom pricing hook on Ethereum
Uniswap v4 Hook Contract 0x811f7130493b46700dd13c7cc7c1634a2f0f8888 on Ethereum · Custom pricing
- Volume (24h)
- $0
- Value locked (TVL)
- $0
- All-time volume
- $0
- Pools using this hook
- 1
- Swaps (24h)
- 1 (1 traders)
- Total swaps
- 1
What it does
This hook runs custom accounting on swaps and can settle part of each trade itself, but from the decoded bytecode alone it is not possible to confirm which trades pay more or less.
How it works step by step
- Exposes a fixed source pool configuration (currency0, currency1, sourceFee, sourceTickSpacing) and a feePips value, suggesting it mirrors or routes against a separate source pool.
- Gates liquidity additions through beforeAddLiquidity, which is a view function that can revert to block adds.
- On swaps, beforeSwap is nonpayable and can return a delta, so the hook can take over part of the swap accounting.
- Calls the PoolManager's unlock, swap, take, mint and burn functions, meaning it opens its own unlock sessions and moves currency or ERC6909 claims during swaps.
- Has a collect function that moves accrued amounts to a recipient, and an unlockCallback used to settle those operations inside the PoolManager lock.
- Swap behaviour
- beforeSwap runs on every swap, can return a before-swap delta, and internally calls the PoolManager swap, take, mint and burn functions, so the hook settles part or all of the trade itself; exactly which trades pay more or less cannot be determined from the decoded bytecode.
- Liquidity behaviour
- beforeAddLiquidity runs on every liquidity addition and is a view function that can only accept or revert; no liquidity removal callback is enabled.
- Fee behaviour
- Exposes sourceFee and feePips, indicating a fee derived from a source pool configuration; the exact fee formula and who receives the fee cannot be determined without the source, so the fee is not confirmed to be static.
- Owner & admin controls
- The contract is Ownable and exposes owner(); the collect function and any other owner-restricted actions cannot be confirmed as owner-only from bytecode alone, and no pause or upgrade mechanism was identified.
Enabled Uniswap v4 callbacks
beforeAddLiquidity, beforeSwap, beforeSwapReturnDelta
beforeAddLiquidity is used to gate or validate liquidity additions; beforeSwap is used to run custom swap logic and possibly settle the swap itself; beforeSwapReturnDelta lets the hook return a delta that changes how the swap is accounted.
Security & trust assessment
Risk level: high, estimated (decoded bytecode, low confidence).
Who controls it: An Ownable key may control privileged functions such as collect; without source it cannot be confirmed what parameters, if any, the owner can change.
Risk to user funds: The hook can take, mint and burn currency during swaps via return deltas and PoolManager calls, so user swap funds and LP-related balances pass through hook-controlled accounting.
Security findings
- [high] Before-swap return delta: beforeSwapReturnDelta is enabled and beforeSwap is nonpayable, so the hook can take or give currency during swaps and alter settlement.
- [medium] Currency movement via take, mint and burn: The bytecode calls take, mint and burn on the PoolManager, so the hook moves real tokens or ERC6909 claims on behalf of users and its own balances.
- [medium] Owner-controlled collect: The collect(address,address,uint256) function transfers amounts to a caller-specified recipient; if access is not restricted to the owner, accrued funds could be drained.
- [low] Liquidity add gating: beforeAddLiquidity can revert, so the owner or hook logic may block liquidity additions.
- [info] Unverified source: No verified source is available, so the exact swap pricing, access checks and fee formula are inferred from selectors and storage-free bytecode only.
Contract details
- Verified source
- No
- Bytecode size
- 5,391 bytes
- Upgradeable proxy
- No
- Detected patterns
- erc6909-claims, moves-currency, ownable, return-delta, self-unlock
Pools using Likely custom pricing hook
- ETH / USDC (0.01% fee) — 24h volume $0, TVL $0, 1 swaps today