interface icon indicating copy to clipboard operation
interface copied to clipboard

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

Open huybuidac opened this issue 2 months ago โ€ข 0 comments

๐Ÿ“ฑ 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.

huybuidac avatar Oct 24 '25 07:10 huybuidac