Likely custom pricing hook on BNB Chain

Uniswap v4 Hook Contract 0x18a79214ce8a3305201d86cc621df93a4fe0c088 on BNB Chain · 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 immutable, unverified hook that runs before every swap and can take or adjust part of the swap amount by an unknown rate, while LPs can always add and withdraw freely.

How it works step by step

  • Runs custom logic before every swap in pools that use it.
  • Can change the amounts of a swap by returning a delta, and calls the PoolManager to take tokens out of the swap flow.
  • Keeps four running counters in storage that update on each swap, readable through one public view function.
  • Has no owner or admin functions visible in the bytecode.
  • Never touches liquidity adds or withdrawals.
Swap behaviour
Before each swap the hook runs, updates its internal counters, and can take part of the swap amount from the PoolManager through a return delta. The exact amount or percentage taken cannot be confirmed from bytecode alone.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
The pool's normal LP fee applies. The hook may also take an extra amount from swaps via a return delta, but the rate and the recipient cannot be determined from the unverified bytecode.
Owner & admin controls
No admin controls found; the bytecode exposes only the swap callback and one read-only function.

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: No privileged keys were found and the contract is not upgradeable. Its behaviour is fixed, though that behaviour is not verified.

Risk to user funds: Swap tokens can be partly taken or redirected through the before-swap return delta, by an amount that cannot be determined from bytecode. LP principal cannot be locked or drained by this hook.

Security findings

  • [medium] Unverified swap-amount modification: The hook can change swap amounts and take tokens from the PoolManager before swaps. Because the source is unverified, the size of any deduction and where the tokens go cannot be confirmed.
  • [info] LP withdrawals unaffected: Remove-liquidity callbacks are disabled, so the hook can never block or charge LP withdrawals.
  • [info] No admin or proxy: This is a small direct contract with no visible owner functions, so its behaviour cannot be changed after deployment.

Contract details

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

Pools using Likely custom pricing hook