Likely custom pricing hook on BNB Chain
Uniswap v4 Hook Contract 0x94055002c1ffc47124ac063bc827d40d5d968088 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
This unverified, non-upgradeable hook applies an adjustable stored rate to every swap through a return delta, so swappers may pay an extra deduction of unknown size, while LPs can always withdraw freely.
How it works step by step
- Runs custom logic before every swap and can change how much of the swap input or output is applied, using a return delta.
- Stores a rate setting (a small number, likely a fee or rate in basis points) that can be changed through a set_rates function.
- Keeps running counters updated on each swap, which may track volume, fees collected or swap counts.
- Has a separate function that writes two other stored values, possibly a configuration or accounting update.
- Does not touch liquidity adds or withdrawals.
- Swap behaviour
- Before each swap the hook reads a stored rate and can adjust the swap amounts through a return delta, which may take a fee or partly fill the swap itself. The exact formula and any cap cannot be confirmed from bytecode.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- A stored rate set through set_rates likely controls a per-swap deduction or pricing adjustment. Its exact percentage, its maximum and who receives it are unknown from bytecode alone.
- Owner & admin controls
- set_rates and one other function can change stored settings. Access restrictions and caps could not be confirmed from bytecode, so it is unknown whether only an owner can call them or how high rates can go.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs the hook's rate logic and updates its counters on each swap; beforeSwapReturnDelta: lets the hook change or deduct swap amounts.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: Whoever can call set_rates, possibly an owner or possibly anyone, controls the rate applied to swaps. The contract is not upgradeable.
Risk to user funds: Traders' swap amounts can be adjusted by the stored rate, and the maximum deduction is unknown. LP principal cannot be locked or taken by this hook.
Security findings
- [medium] Adjustable rate with unknown cap: set_rates writes a 16-bit value that the swap logic reads. If it is a fee in basis points, a 16-bit value could go above 100%, but no cap or access check could be confirmed from bytecode.
- [info] Swap return delta enabled: The hook can change swap input or output amounts before the swap runs. This is how it would apply its rate.
- [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
- 2,233 bytes
- Upgradeable proxy
- No
- Detected patterns
- return-delta
Pools using Likely custom pricing hook
- BNB / FKSSJ (1.00% fee) — 24h volume $0, TVL $0, 0 swaps today