Skip to content

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

@mikeghen

Description

@mikeghen

📱 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): 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.

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