Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Buy/Sell Panel Slider #462

Open
dcts opened this issue Jun 21, 2024 · 1 comment
Open

Implement Buy/Sell Panel Slider #462

dcts opened this issue Jun 21, 2024 · 1 comment
Assignees
Labels
help wanted Extra attention is needed New Feature

Comments

@dcts
Copy link
Contributor

dcts commented Jun 21, 2024

Currently, our buy/sell panel is missing the percentage slider:

It should have the following specs:

  • the percentage slider represents the amount the user inputtet in proportion to their balance.
  • it sets the token2 for buy orders (independant of market or limit orders)
  • it sets the token1 for sell orders (independant of market or limit orders)
  • should trigger the token amount update on mouse release event
  • user should be able to click on the "0%", "25%", "50%", "75%" and "100%" labels, which should set the slider to the coresponding position and trigger the token amount update
  • if the user sets the amount using another input field, the slider should automatically compute the % amount that was specified.
  • Percentage should be capped at 100% (for cases where the user sets more than the available balance which will result in an error)

Design

made by @maurojose. Please check the Figma file
image

@dcts dcts added help wanted Extra attention is needed New Feature labels Jul 24, 2024
@saidam90
Copy link
Contributor

saidam90 commented Aug 6, 2024

Pls assign me for this one :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed New Feature
Projects
Status: Backlog
Development

No branches or pull requests

2 participants