interface icon indicating copy to clipboard operation
interface copied to clipboard

[Bug] Hook with Dynamic Fee can't be used to create pool positions on Optimism

Open mikeghen opened this issue 2 months ago โ€ข 1 comments

๐Ÿ“ฑ Interface Affected

Which application are you experiencing issues with?


๐Ÿงฉ App Version

  • Version (if known):
  • [x] 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): Mac
  • Device (e.g. iPhone 14 Pro, Pixel 7, MacBook Pro 2023): MBP
  • Wallet used (e.g. Uniswap Wallet, MetaMask, Rainbow): Metamask
  • Network (e.g. Ethereum Mainnet, Arbitrum, Base, etc.): OP

๐Ÿ” Steps to Reproduce

  1. Go to add liquidity with the following:
  2. Hook: 0xe1bC12D9269D577E3AfBBBa8C348C261C9557a80
  3. TokenA: DCA, 0xb1599CDE32181f48f89683d3C5Db5C5D2C7C93cc
  4. TokenB: ETH
  5. Fee: Dynamic
  6. At this point the app crashes as soon as I select dynamic fee options.

โœ… Expected Behavior

Lets me add liquidity.


โŒ Actual Behavior

App crashes:

Error: Invariant failed
    at bt (https://app.uniswap.org/assets/index-DWZ8_YLF.js:50:31078)
    at k1r (https://app.uniswap.org/assets/index-DWZ8_YLF.js:59:12182)
    at ie (https://app.uniswap.org/assets/priceRangeInfo-B4QEkP1P.js:1:4466)
    at ae (https://app.uniswap.org/assets/priceRangeInfo-B4QEkP1P.js:1:1987)
    at https://app.uniswap.org/assets/SelectTokenStep-dzh_T3Cp.js:1:21155
    at Object.e6t [as useMemo] (https://app.uniswap.org/assets/index-DWZ8_YLF.js:10:22692)
    at e.useMemo (https://app.uniswap.org/assets/index-DWZ8_YLF.js:2:59167)
    at Bn (https://app.uniswap.org/assets/SelectTokenStep-dzh_T3Cp.js:1:21150)
    at DIe (https://app.uniswap.org/assets/index-DWZ8_YLF.js:10:18151)
    at VIe (https://app.uniswap.org/assets/index-DWZ8_YLF.js:12:3254)

๐Ÿ“ธ Screenshots or Screen Recording

Please upload any relevant screenshots or recordings to help us understand the issue better.


๐Ÿงพ Additional Context

Same hook code works fine on Sepolia when testing the app on testnet.


โš ๏ธ Please redact or avoid sharing sensitive data such as private keys, seed phrases, or personally identifying info.

mikeghen avatar Nov 14 '25 15:11 mikeghen

Error: Invariant failed at bt (https://app.uniswap.org/assets/index-DWZ8_YLF.js:50:31078) at k1r (https://app.uniswap.org/assets/index-DWZ8_YLF.js:59:12182) at ie (https://app.uniswap.org/assets/priceRangeInfo-B4QEkP1P.js:1:4466) at ae (https://app.uniswap.org/assets/priceRangeInfo-B4QEkP1P.js:1:1987) at https://app.uniswap.org/assets/SelectTokenStep-dzh_T3Cp.js:1:21155 at Object.e6t [as useMemo] (https://app.uniswap.org/assets/index-DWZ8_YLF.js:10:22692) at e.useMemo (https://app.uniswap.org/assets/index-DWZ8_YLF.js:2:59167) at Bn (https://app.uniswap.org/assets/SelectTokenStep-dzh_T3Cp.js:1:21150) at DIe (https://app.uniswap.org/assets/index-DWZ8_YLF.js:10:18151) at VIe (https://app.uniswap.org/assets/index-DWZ8_YLF.js:12:3254)

hungchec1111-sketch avatar Nov 15 '25 02:11 hungchec1111-sketch