Uniswap / Uniswap/interface

Crash report: `Error: invalid decimal value (argument="value", value="1e+42", code=INVALID_ARGUMENT, version=bignumber/5.6.2)` (Sort collection by High to Low)

Open
#5,478 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

URL

https://app.uniswap.org/#/nfts/collection/0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb?sort=highest

Description

When browsing the Cryptopunks NFT collection, trying to rank items from default to High prices to Low, this error message appears. I have tested it on Safari, Chrome and Firefox.

Error

Error: invalid decimal value (argument="value", value="1e+42", code=INVALID_ARGUMENT, version=bignumber/5.6.2)

Stacktrace

value@https://app.uniswap.org/static/js/4.ef60cbe2.chunk.js:2:102836
value@https://app.uniswap.org/static/js/4.ef60cbe2.chunk.js:2:102980
v@https://app.uniswap.org/static/js/4.ef60cbe2.chunk.js:2:2048923
p@https://app.uniswap.org/static/js/main.775c2c47.chunk.js:1:717860
map@[native code]
Qo@https://app.uniswap.org/static/js/4.ef60cbe2.chunk.js:2:3804843
m@https://app.uniswap.org/static/js/main.775c2c47.chunk.js:1:721197
Le@https://app.uniswap.org/static/js/main.775c2c47.chunk.js:1:797557
Ao@https://app.uniswap.org/static/js/4.ef60cbe2.chunk.js:2:3800432
_f@https://app.uniswap.org/static/js/4.ef60cbe2.chunk.js:2:3812121
gu@https://app.uniswap.org/static/js/4.ef60cbe2.chunk.js:2:3846581
vu@https://app.uniswap.org/static/js/4.ef60cbe2.chunk.js:2:3846509
mu@https://app.uniswap.org/static/js/4.ef60cbe2.chunk.js:2:3846372
au@https://app.uniswap.org/static/js/4.ef60cbe2.chunk.js:2:3843152
iu@https://app.uniswap.org/static/js/4.ef60cbe2.chunk.js:2:3841703
iu@[native code]
O@https://app.uniswap.org/static/js/4.ef60cbe2.chunk.js:2:3868282
C@https://app.uniswap.org/static/js/4.ef60cbe2.chunk.js:2:3868816
@https://app.uniswap.org/static/js/4.ef60cbe2.chunk.js:2:2747931
c@https://app.uniswap.org/static/js/4.ef60cbe2.chunk.js:2:2748045
n@https://app.uniswap.org/static/js/4.ef60cbe2.chunk.js:2:2746991

Device data

{
  "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15",
  "browser": {
    "name": "Safari",
    "version": "15.6.1",
    "major": "15"
  },
  "engine": {
    "name": "WebKit",
    "version": "605.1.15"
  },
  "os": {
    "name": "Mac OS",
    "version": "10.15.7"
  },
  "device": {},
  "cpu": {}
}

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 crash from the provided Uniswap NFT collection URL by sorting Cryptopunks from High to Low. Start by tracing the minified stack frames in the reported JavaScript bundles back to the TypeScript source and identify the decimal value that becomes 1e+42; done means the collection sorts without the invalid decimal error in Safari, Chrome, and Firefox.

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
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.