Skip to content

[Bug] Incorrectly High Price Impact Displayed for Pools with Hook-Based Fees #7971

@huybuidac

Description

@huybuidac

📱 Interface Affected

Which application are you experiencing issues with?


🧩 App Version

  • Version (if known):
  • Production build
  • Development build

💻 System / Environment Info

Please provide details about your environment:

  • Browser (name + version): chrome
  • OS / Platform (e.g. iOS 17, Windows 11, Android 14): macos
  • Device (e.g. iPhone 14 Pro, Pixel 7, MacBook Pro 2023): macbook m4
  • Wallet used (e.g. Uniswap Wallet, MetaMask, Rainbow): metamask
  • Network (e.g. Ethereum Mainnet, Arbitrum, Base, etc.): mainnet

🔁 Steps to Reproduce

  1. Navigate to the swap interface for a pool that utilizes a hook for its fees.
  2. Example Pool: https://app.uniswap.org/explore/tokens/ethereum/0xd0cC2b0eFb168bFe1f94a948D8df70FA10257196?inputCurrency=NATIVE
  3. Enter any amount for the input token (e.g., 0.01 ETH).

✅ Expected Behavior

The price impact should dynamically reflect the actual slippage based on the input amount relative to the pool's liquidity. For a small trade, this value should be low.


❌ Actual Behavior

The UI displays a static, high price impact (10% in the provided example) regardless of the input trade size. This suggests the fee from the hook might be being misinterpreted as price impact.


📸 Screenshots or Screen Recording

Image showing 10% price impact

🧾 Additional Context

Any extra details? (e.g. logs, error messages, recent updates, beta flags enabled, etc.)


⚠️ Please redact or avoid sharing sensitive data such as private keys, seed phrases, or personally identifying info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions