Likely custom pricing hook on BNB Chain
Uniswap v4 Hook Contract 0x795891914547ea015df56617f39e55071c1f0088 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 take an unknown portion of trades for itself, while leaving LP deposits and withdrawals untouched.
How it works step by step
- Runs custom logic before every swap and can change the swap amounts using a return delta.
- Calls the PoolManager to take tokens out during the swap, likely collecting a fee or part of the input to the hook or a recipient.
- Keeps counters in storage that update on each swap, plus read-only views exposing those values.
- Has no liquidity callbacks, so LPs add and withdraw normally.
- Swap behaviour
- Before each swap the hook can adjust the swap amounts and take tokens from the PoolManager, which likely deducts some amount from traders. The exact amount or rate cannot be confirmed from bytecode alone.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- The hook appears to take a deduction from swaps via a return delta and a take call, but the exact percentage and recipient cannot be determined from the unverified bytecode. The pool's normal LP fee also applies.
- Owner & admin controls
- No admin setter functions were found among the dispatched functions; only the swap callback and two read-only views exist. Some stored values are read but never written, suggesting parameters fixed at deployment.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs custom logic and updates counters before each swap; beforeSwapReturnDelta: lets the hook change swap amounts and pull tokens from the swap.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: No privileged admin functions were detected and the contract is not a proxy. Behaviour appears fixed at deployment.
Risk to user funds: The hook can take a portion of trader swap tokens during swaps, with an unknown rate from bytecode. LP principal cannot be locked or drained by this hook.
Security findings
- [medium] Swap amounts can be modified: The hook uses a before-swap return delta and pulls tokens from the PoolManager, so it can deduct from trades; the size of the deduction is not verifiable without source.
- [info] No admin functions visible: Only the swap callback and two view functions are exposed, so no owner appears able to change settings after deployment.
- [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,564 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- BNB / DOJO (0.05% fee) — 24h volume $0, TVL $0, 0 swaps today