Likely custom pricing hook on BNB Chain

Uniswap v4 Hook Contract 0x5cf640a5cf05418294e46a492ab034ab5e1c4088 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 unverified, non-upgradeable hook that runs before each swap and can adjust or take part of swap amounts by an unknown amount, while LPs can always withdraw 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 and calls the pool manager's take function to pull tokens out during swaps.
  • Keeps simple counters in storage that are updated on each swap and exposed through a read-only view function.
  • Has no liquidity callbacks, so LPs add and remove liquidity normally.
Swap behaviour
Before each swap the hook can adjust the swap amounts and take tokens from the pool manager, which may reduce what the trader receives or change how much they pay. The exact amount or percentage cannot be confirmed from bytecode alone.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
No explicit fee rate is visible. The hook can take part of a swap through its return delta, but the size and recipient are unknown without verified source.
Owner & admin controls
No admin or owner functions were found in the decoded bytecode.

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.

Security & trust assessment

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

Who controls it: No admin or owner functions were detected and the contract is not a proxy. Behaviour appears fixed at deployment.

Risk to user funds: Trader swap amounts can be altered or partially taken by the hook, by an unknown amount. LP principal cannot be locked or charged on withdrawal.

Security findings

  • [medium] Unverified hook can take swap tokens: The hook uses a before-swap return delta and calls take, so it can move tokens during swaps. The amount and recipient cannot be verified without source.
  • [info] LP withdrawals unaffected: Remove-liquidity callbacks are disabled in the address, so the hook can never block or charge LP withdrawals.

Contract details

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

Pools using Likely custom pricing hook