Uniswap / Uniswap/interface

swap form frontend calculation error for ETH to any token.

Open
#7,647 6 comments 1 reaction 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

[BUG] : when we click max button, I should get my exact balance in the input field(Actual Balance: 0.010), as you can see what am I getting (0.000174...) its happening only for ETH
Screenshot 2024-01-29 015731
Screenshot 2024-01-29 015751

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 by reproducing the swap form's Max-button flow with an ETH balance and compare the input value with the wallet's actual balance. Trace the frontend calculation that produces the displayed amount; done means ETH Max shows the exact spendable balance without breaking token swaps.

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.