Likely custom pricing hook on BNB Chain
Uniswap v4 Hook Contract 0x05f928de019095b48c34a0c5d5cc32a042638088 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 hook that runs before each swap and can take or adjust part of the trade amount by an unknown size, with a switch changing that behaviour, while LPs remain free to add and withdraw liquidity.
How it works step by step
- Runs before every swap and can change the swap amounts through a before-swap return delta.
- Can pull tokens out of the pool manager to its own address during a swap, and holds a transfer routine for moving tokens it holds.
- Keeps running counters (likely swap totals or accrued amounts) that a view function exposes.
- Has a boolean switch, set by an unrestricted or unknown caller, that changes how the before-swap logic behaves.
- Has no liquidity callbacks, so LP deposits and withdrawals are never touched.
- Swap behaviour
- Before each swap the hook runs custom logic and can take part of the swap amount or alter what the trader pays or receives via a return delta. The exact deduction size cannot be determined from bytecode, and a stored on/off flag changes this behaviour.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- Uses the pool's static fee, plus a possible hook-side deduction taken before the swap whose size is unknown from bytecode alone.
- Owner & admin controls
- One function flips a stored on/off flag that affects swap handling, and another writes a stored value; who may call them and any caps cannot be verified from bytecode.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs custom logic and updates counters before each trade; beforeSwapReturnDelta: lets the hook change or take part of the swap amounts.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: It is unclear who controls the toggle and setter functions; at most they can change how swaps are handled, not LP withdrawals.
Risk to user funds: Trader swap amounts can be reduced by an unknown amount through the return delta, and tokens taken may be held and transferred by the hook. LP principal cannot be locked or drained by this hook.
Security findings
- [medium] Unverified swap delta with token withdrawal: The hook can alter swap amounts and take tokens from the pool manager during swaps, but the size of any deduction cannot be confirmed without source code.
- [low] Toggle affecting swaps: A stored boolean set by a separate function changes before-swap behaviour; access restrictions are unknown.
- [info] LP withdrawals unaffected: Remove-liquidity callbacks are disabled, so the hook can never block or charge LP withdrawals.
Contract details
- Verified source
- No
- Bytecode size
- 1,960 bytes
- Upgradeable proxy
- No
- Detected patterns
- erc20, moves-currency, return-delta
Pools using Likely custom pricing hook
- BNB / AGID (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today