Uniswap / Uniswap/interface

Crash report: `Error: [big.js] Division by zero`

Open
#3,561 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/#/vote/2/12

Error

Error: [big.js] Division by zero

Stacktrace

Error: [big.js] Division by zero
    at t.div (https://app.uniswap.org/static/js/3.10dd3680.chunk.js:2:2239433)
    at e.toFixed (https://app.uniswap.org/static/js/3.10dd3680.chunk.js:2:65053)
    at sn (https://app.uniswap.org/static/js/10.5b6f2871.chunk.js:1:67308)
    at oi (https://app.uniswap.org/static/js/3.10dd3680.chunk.js:2:3033362)
    at Xo (https://app.uniswap.org/static/js/3.10dd3680.chunk.js:2:3085662)
    at Fu (https://app.uniswap.org/static/js/3.10dd3680.chunk.js:2:3072903)
    at _u (https://app.uniswap.org/static/js/3.10dd3680.chunk.js:2:3072831)
    at Eu (https://app.uniswap.org/static/js/3.10dd3680.chunk.js:2:3072694)
    at wu (https://app.uniswap.org/static/js/3.10dd3680.chunk.js:2:3069660)
    at https://app.uniswap.org/static/js/3.10dd3680.chunk.js:2:3019154

Device data

{
  "ua": "Mozilla/5.0 (Linux; Android 11; A600DL Build/RKQ1.201202.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/94.0.4606.85 Mobile Safari/537.36",
  "browser": {
    "name": "Chrome WebView",
    "version": "94.0.4606.85",
    "major": "94"
  },
  "engine": {
    "name": "Blink",
    "version": "94.0.4606.85"
  },
  "os": {
    "name": "Android",
    "version": "11"
  },
  "device": {
    "vendor": "Acer",
    "model": "A600",
    "type": "tablet"
  },
  "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 at https://app.uniswap.org/#/vote/2/12 and inspect the reported big.js division-by-zero stack trace in the compiled JavaScript chunks. The report does not identify a source file or test, so first locate the corresponding source entry point; done means the vote page no longer crashes with this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.