Likely custom pricing hook on Ethereum

Uniswap v4 Hook Contract 0x5e518b55fdb05eccbcdd1bdf44f08e2332f84088 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 each swap, while LPs can 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, for example by taking part of the input.
  • Calls the PoolManager's take function, so it can pull tokens out of the pool's accounting to an address during swaps.
  • Keeps four numeric counters in storage that are updated on each swap. Their exact meaning is unknown without source.
  • Has no liquidity callbacks, so LPs can add and withdraw freely.
Swap behaviour
Before each swap the hook updates internal counters and may take tokens from the swap via a return delta and the PoolManager take call. The size of any deduction and its recipient cannot be determined from bytecode.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
May charge a hook-level fee by taking tokens during swaps on top of the pool fee. The exact percentage and recipient are unknown from bytecode.
Owner & admin controls
No admin or owner functions were found among the dispatched selectors. Only beforeSwap and one view function exist.

Enabled Uniswap v4 callbacks

beforeSwap, beforeSwapReturnDelta

beforeSwap: runs custom logic and updates counters before each swap; beforeSwapReturnDelta: lets the hook change or deduct from swap amounts.

Security & trust assessment

Risk level: medium, estimated (decoded bytecode, low confidence).

Who controls it: No privileged admin functions were detected in the bytecode, and the contract is not a proxy.

Risk to user funds: Swap input or output can be reduced by an unknown amount during swaps. LP principal cannot be locked or drained by this hook.

Security findings

  • [medium] Unverified swap delta with token take: The hook can change swap amounts and take tokens during swaps. Because the source is unverified, the size of any deduction cannot be confirmed.
  • [info] No admin functions visible: Only beforeSwap and one view function are dispatched, and no owner setters were found.
  • [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so the hook can never block or charge LP withdrawals.

Contract details

Verified source
No
Bytecode size
1,506 bytes
Upgradeable proxy
No
Detected patterns
moves-currency, return-delta

Pools using Likely custom pricing hook