Uniswap / Uniswap/interface

[Bug] maximumFractionDigits value is out of range

Open
#8,054 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
5.5k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

📱 Interface Affected

Which application are you experiencing issues with?

-https://app.uniswap.org

  • Android

🧩 App Version

  • Production build

💻 System / Environment Info

Please provide details about your environment:

  • TokenPocket

🔁 Steps to Reproduce

  1. Open https://app.uniswap.org/
  2. Create a liquidity pool
  3. Select the trading pair as ETH, 01 (0x32708538a107253b51a735A724330A23106ca4cA), with a 1% fee level

✅ Expected Behavior

What should have happened?

RangeError: maximumFractionDigits value is out of range.
at Number.toLocaleString ()
at https://app.uniswap.org/assets/FeeTierSearchModal-CWlRRi51.js:1:20018
at Object.F0 [as useMemo] (https://app.uniswap.org/assets/client-Cpog3VMD.js:8:56560)
at n.useMemo (https://app.uniswap.org/assets/react-D7hXOYnT.js:1:7172)
at Ir (https://app.uniswap.org/assets/FeeTierSearchModal-CWlRRi51.js:1:19398)
at gm (https://app.uniswap.org/assets/CreatePosition-B4n_DmJu.js:1:130180)
at jc (https://app.uniswap.org/assets/client-Cpog3VMD.js:8:47733)
at fe (https://app.uniswap.org/assets/client-Cpog3VMD.js:8:70331)
at s1 (https://app.uniswap.org/assets/client-Cpog3VMD.js:8:80660)
at uv (https://app.uniswap.org/assets/client-Cpog3VMD.js:8:116196)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by opening the app, creating a liquidity pool, and selecting ETH with token 0x32708538a107253b51a735A724330A23106ca4cA at the 1% fee level. Start from the FeeTierSearchModal-CWlRRi51.js stack entry and the Number.toLocaleString call; done means this selection no longer raises the reported RangeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.