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

New UI: Cannot set custom token amount for new positions #139

Open
jthiller opened this issue Mar 31, 2024 · 2 comments · Fixed by #142
Open

New UI: Cannot set custom token amount for new positions #139

jthiller opened this issue Mar 31, 2024 · 2 comments · Fixed by #142

Comments

@jthiller
Copy link
Collaborator

jthiller commented Mar 31, 2024

position-creation
Typing in the position creation window gets overwritten with 0.00001 unless adding digits to the end of the number
MacOS / Safari 17.4

@bryzettler
Copy link
Contributor

Hmm, thats just a number input and running off the actual mint of the token. The issue here may be that you actually have 0 IOT?

            <Input
              placeholder="Enter amount"
              max={maxLockupAmount}
              min={mintMinAmount}
              value={amount}
              type="number"
              onChange={handleAmountChange}
              step={mintMinAmount}
            />

@jthiller
Copy link
Collaborator Author

jthiller commented Apr 2, 2024

Ah yea, that is exactly the issue.
Max amount should probably be unbounded for the input, but the user is notified if they have insufficient funds. Similar model is how Jup handles inputs.
image

@bryzettler bryzettler linked a pull request Apr 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants