Access control hook on BNB Chain
Uniswap v4 Hook Contract 0x7a4578c3ad33f885504d20061abd0a156938c088 on BNB Chain · Access control
- 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 hook runs before every swap and can adjust swap amounts using configurable parameters of unknown size, while LPs can always add and withdraw liquidity freely.
How it works step by step
- Runs custom logic before every swap and can change swap amounts using a before-swap return delta.
- Keeps internal counters that are updated on each swap, likely tracking volume or accumulated value.
- Has a setter that takes two numbers (stored in two configuration slots read during swaps) and appears to set swap parameters.
- Keeps a per-address balance mapping with functions that look like deposit or claim and withdraw flows, suggesting some kind of points, rewards or accounting system.
- Never runs on liquidity add or remove, so LPs can always withdraw.
- Swap behaviour
- Before each swap the hook reads two configured parameters and updates internal counters. It can change the swap's input or output amounts through a return delta. The exact deduction or adjustment cannot be confirmed from bytecode.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- Any fee or amount adjustment is applied through the before-swap return delta. The rate is set by stored parameters whose bounds are unknown, and where the value goes is unclear (possibly per-address balances inside the hook).
- Owner & admin controls
- A function taking two numbers writes the parameters used during swaps. It is likely admin-only, but no access control or caps can be verified from bytecode.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs custom checks and accounting before each swap; beforeSwapReturnDelta: lets the hook adjust or take part of swap amounts.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: A likely privileged account can update the two swap parameters, which may change how much swaps are adjusted. The actual limits are unknown.
Risk to user funds: Traders' swap amounts can be adjusted by an unverified amount through the before-swap delta. LP principal cannot be locked or taken by this hook.
Security findings
- [medium] Unverified swap return delta: The hook can change swap amounts before execution. The size of any deduction depends on stored parameters whose limits cannot be verified.
- [low] Configurable swap parameters: Two values read during swaps can be overwritten by a setter function. Its caller restrictions and value caps 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
- 2,487 bytes
- Upgradeable proxy
- No
- Detected patterns
- return-delta
Pools using Access control hook
- BNB / CHYAI (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today