OriginProtocol / OriginProtocol/origin-dollar

Swap flicker on first input

Open
#1,735 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug OETH P3 ui/ux
Dominant language
Solidity
Stars
152
Forks
115
Avg merge
3d 20h
Merged PRs (30d)
17

Description

When I first load the swap form and enter an amount, I get a brief output that doesn't make sense. See this example where my input is 150 and the output is 0.99999xxxxxxxxxxxxx for a fraction of a second before changing to 150.

https://www.loom.com/share/ccb1ee9ca2714af88929af18c49e0604

Contributor guide

No contributing guide indexed for this repository

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 swap form and reproduce the first-input interaction described in the issue, using the linked Loom example as the behavioral reference. Trace the initial output calculation and confirm that the form no longer briefly displays an incorrect value before settling on the expected output.

Written by the indexing model from the issue text.

Assessment

Tech stack
solidity
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.