Uniswap / Uniswap/interface

Redirect away from V2 pages when network switches to L2

Open
#2,199 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

URL

https://app.uniswap.org/#/pool/v2

Error

Error: No V2 factory address on this chain

Stacktrace

Error: No V2 factory address on this chain
    at sr (https://app.uniswap.org/static/js/main.5691fd30.chunk.js:1:85317)
    at https://app.uniswap.org/static/js/main.5691fd30.chunk.js:1:587638
    at Array.map (<anonymous>)
    at https://app.uniswap.org/static/js/main.5691fd30.chunk.js:1:587599
    at Object.useMemo (https://app.uniswap.org/static/js/4.d35f88da.chunk.js:2:1666864)
    at t.useMemo (https://app.uniswap.org/static/js/4.d35f88da.chunk.js:2:1585104)
    at aT (https://app.uniswap.org/static/js/main.5691fd30.chunk.js:1:587577)
    at no (https://app.uniswap.org/static/js/4.d35f88da.chunk.js:2:1660899)
    at Vu (https://app.uniswap.org/static/js/4.d35f88da.chunk.js:2:1713357)
    at Ss (https://app.uniswap.org/static/js/4.d35f88da.chunk.js:2:1700531)

Device data

{
  "ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36",
  "browser": {
    "name": "Chrome",
    "version": "92.0.4515.131",
    "major": "92"
  },
  "engine": {
    "name": "Blink",
    "version": "92.0.4515.131"
  },
  "os": {
    "name": "Windows",
    "version": "10"
  },
  "device": {},
  "cpu": {
    "architecture": "amd64"
  }
}

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

Start at the /#/pool/v2 URL and reproduce the issue by switching the connected network to an L2. Trace where the “No V2 factory address on this chain” error is surfaced; done means V2 pages redirect away instead of displaying that error when the network changes.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.