Likely custom pricing hook on Base
Uniswap v4 Hook Contract 0xa2e7d4cd4bbf7d5d0b715c799a1abbb7d7960088 on Base · 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 hook runs before each swap and can change swap amounts and take tokens by an amount that cannot be confirmed, so traders may pay more than the pool fee, while LPs can add and withdraw liquidity 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 PoolManager to take tokens out during swaps.
- Writes two numbers and an address to storage on each swap, and exposes them through a public read function.
- Calls an external contract function of unknown purpose during swaps.
- 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 could act as a fee or a custom pricing step. The exact amount taken cannot be confirmed from the bytecode.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- The pool's normal fee applies. The hook may also take an extra amount from swaps through its return delta, but the size and recipient of that amount cannot be determined from the bytecode.
- Owner & admin controls
- No owner or admin setter functions were found in the decoded bytecode. The stored values appear to be written only during swaps.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs custom logic and records swap data before each trade; beforeSwapReturnDelta: lets the hook change or deduct swap amounts and take tokens.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: No admin functions were found, and the contract is not upgradeable. Its behaviour still cannot be fully verified without source code.
Risk to user funds: Traders' swap amounts can be changed or reduced by an unknown amount through the before-swap delta. LP principal cannot be locked or charged by this hook.
Security findings
- [medium] Unverified swap deduction: The hook can change swap amounts and take tokens from the PoolManager during swaps. Without source code, the amount taken and who receives it cannot be confirmed.
- [low] Unknown external call: During swaps the hook calls an external function of unknown purpose on another contract, so its effect on swaps is unclear.
- [info] LP withdrawals unaffected: Remove-liquidity callbacks are disabled in the hook address, so the hook can never block or charge LP withdrawals.
Contract details
- Verified source
- No
- Bytecode size
- 1,309 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- ETH / MEMEINC (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today