Uniswap / Uniswap/interface

Persist swap inputs when switching networks

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

Nobody has claimed this yet.

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

Description

Desired Behavior:

  1. Enter swap details (e.g. 1 ETH for 120 UNI)
  2. Switch networks (e.g. L1 -> Optimism, or Arbitrum, in any direction)
  3. The user-entered value should persist. Once the new network is connected, the app should automatically fetch a quote for that trade and display it.

Use case: as a user I want to quickly compare prices across the different networks.

Current Behavior: all user input is dropped when we switch networks

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

No files, tests, or entry points are named. Start by tracing the swap form state and network-switch handling, then inspect how quotes are fetched after a network change; done means entered swap values survive switching between networks and a new quote is displayed.

Written by the indexing model from the issue text.

Assessment

Tech stack
blockchain, typescript
Domain
blockchain, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.