Likely custom pricing hook on Ethereum
Uniswap v4 Hook Contract 0xd8828142bcb1bcd477c803370b873e7278414088 on Ethereum · Custom pricing
- Volume (24h)
- $0
- Value locked (TVL)
- $0
- All-time volume
- $0
- Pools using this hook
- 1
- Swaps (24h)
- 0 (0 traders)
- Total swaps
- 0
What it does
An unverified, non-upgradeable hook that runs before every swap and may take an unknown cut of swap tokens, while LPs can still add and withdraw liquidity freely.
How it works step by step
- Runs custom logic before every swap in pools that use it.
- Can change swap amounts through a before-swap return delta, which means it can take part of the swap's input.
- Calls the PoolManager to take tokens out to some address during swaps.
- Keeps two counters in storage that update on each swap and can be read through a public view function.
- No liquidity callbacks, so LPs add and remove liquidity normally.
- Swap behaviour
- Before each swap the hook runs code that can adjust the swap amounts and take tokens from the PoolManager. The size of any deduction and who receives it cannot be confirmed from the bytecode.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- Uses the pool's static LP fee, but the hook may take an extra cut of swap tokens through its before-swap delta. The exact amount and recipient are unknown because the source is not verified.
- Owner & admin controls
- No owner or admin functions were found in the decoded bytecode. The contract exposes only the swap callback and one read-only view.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs custom logic and updates counters before each swap; beforeSwapReturnDelta: lets the hook change swap amounts and take tokens from the swap.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: Not stated.
Risk to user funds: Not stated.
Security findings
- [medium] Unverified hook that can take swap tokens: The hook can change swap amounts and calls the PoolManager to take tokens, but without source code the size of the deduction and who receives it cannot be checked.
- [info] LP withdrawals unaffected: Remove-liquidity callbacks and liquidity deltas are disabled in the hook address, so the hook cannot block withdrawals or charge LPs on exit.
- [info] Not upgradeable: This is a direct contract, not a proxy, so its logic is fixed.
Contract details
- Verified source
- No
- Bytecode size
- 1,370 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- ETH / BOUNTY (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today