Likely custom pricing hook on BNB Chain

Uniswap v4 Hook Contract 0xbe310d74e8742621c6e4b32186570b9772d4c888 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

A Uniswap v4 hook bound to one target pool that runs custom checks before liquidity is added and before swaps, with the ability to adjust swap amounts, though its exact purpose cannot be confirmed without source.

This read was written for the hook 0x1f1c…c888 on BNB Chain and reused here: the two share a code shape, so constants such as fees, owners and addresses can differ.

How it works step by step

  • Binds to a single target pool, exposed through targetPoolKey() and targetPoolId() getters
  • Runs a custom check in beforeAddLiquidity before liquidity is added to that pool
  • Runs custom logic in beforeSwap on every swap of the pool
  • Returns a before-swap delta (return-delta permission), so it can alter the amounts exchanged
  • Uses an initializer() function, indicating one-time configuration at setup
Swap behaviour
beforeSwap runs on every swap and can return a delta that modifies swap amounts; the precise adjustment logic cannot be determined from the decoded bytecode.
Liquidity behaviour
beforeAddLiquidity is enabled and gates liquidity additions for a specific target pool; the exact check cannot be determined without source.
Fee behaviour
Uses the pool's static fee; no fee override was identified from the decoded functions.
Owner & admin controls
No admin controls found. The decoded selectors include initializer() and targetPoolKey()/targetPoolId() getters, but no owner, pause, upgrade or parameter setter functions were identified.

Enabled Uniswap v4 callbacks

beforeAddLiquidity, beforeSwap, beforeSwapReturnDelta

beforeAddLiquidity: runs a check before liquidity is added to the target pool. beforeSwap: runs before each swap and can return a delta (the return-delta heuristic tag). beforeSwapReturnDelta: allows beforeSwap to alter the swap amounts and therefore the net token flows.

Security & trust assessment

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

Who controls it: Unknown. The initializer() selector suggests a one-time setup step; whether any key retains privileged control over the target pool cannot be determined from bytecode alone.

Risk to user funds: Because beforeSwapReturnDelta is enabled, the hook can alter swap deltas and may take or supply tokens on swaps, so it can affect user proceeds. Whether it can block liquidity or swaps depends on logic not visible without source.

Security findings

  • [medium] Return delta permission on swaps: beforeSwapReturnDelta is enabled, so beforeSwap can return a delta that changes how much the swapper pays or receives, and the hook may take or give tokens during swaps.
  • [medium] Unverified source: No verified source is available, so the logic behind beforeSwap and beforeAddLiquidity cannot be confirmed and the exact conditions for blocking or altering trades are unknown.
  • [low] Liquidity gating: beforeAddLiquidity is enabled, which lets the hook reject or condition liquidity provision for the target pool.
  • [info] Single target pool: The hook is bound to a specific target pool via targetPoolKey and targetPoolId getters, suggesting it serves a single pool rather than acting generically.

Contract details

Verified source
No
Bytecode size
3,725 bytes
Upgradeable proxy
No
Detected patterns
return-delta

Pools using Likely custom pricing hook