Uniswap / Uniswap/interface

Improve error messages to provide solution to the issue

Open
#1,330 3 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

Is your feature request related to a problem? Please describe.
Error messages shown on interface are not very descriptive and lot of users come seek support for fairly simple things (slippage increase for example).

Describe the solution you'd like
We noticed that some community forks improved errors messages so they suggest solution to problem

Additional context
Example of fork that significantly improved error messages can be found here: https://github.com/Circulation-2020/HiFiSwap-Main/blob/fe52abab7238d97c5f117a02a1b8c0d95ed6e13b/src/hooks/useSwapCallback.ts

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 reading src/hooks/useSwapCallback.ts and comparing it with the referenced HiFiSwap-Main implementation. Trace how swap errors are surfaced in the interface and identify which messages need actionable suggestions, such as increasing slippage. Done means the relevant error messages clearly suggest solutions for common user problems.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.