interface
interface copied to clipboard
[Bug] Incorrectly High Price Impact Displayed for Pools with Hook-Based Fees
๐ฑ Interface Affected
Which application are you experiencing issues with?
- [x] Web (app.uniswap.org)
- [ ] Wallet Extension (wallet.uniswap.org)
- [ ] Wallet Mobile App
- [ ] iOS
- [ ] Android
- [ ] Both
๐งฉ 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
- Navigate to the swap interface for a pool that utilizes a hook for its fees.
- Example Pool: https://app.uniswap.org/explore/tokens/ethereum/0xd0cC2b0eFb168bFe1f94a948D8df70FA10257196?inputCurrency=NATIVE
- 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
๐งพ 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.