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

Buy Reservecoin button is not being activated in the initial state #117

Open
ceilican opened this issue Jun 11, 2024 · 0 comments
Open

Buy Reservecoin button is not being activated in the initial state #117

ceilican opened this issue Jun 11, 2024 · 0 comments
Assignees

Comments

@ceilican
Copy link
Contributor

ceilican commented Jun 11, 2024

A new Djed on sepolia has been deployed. In its initial state, the reserve is equal to zero. It should be possible to buy reservecoins. However, as shown in the screenshot below, the "Buy SOR" button is not getting activated.

Screenshot 2024-06-11 at 23 01 05

I'm sure that the contract allows the reservecoins to be bought in this state. I suspect that the frontend has stricter (and wrong) conditions to decide whether to active the button to allow reservecoins to be bought.

ceilican pushed a commit that referenced this issue Jun 14, 2024
When we input a float value suppose say 0.01,the parseInt value is set
to true(because it cannot handle float values,it truncates the digits
after decimal points and returns 0) and the button is disabled even when
the transaction is valid.
#117
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

No branches or pull requests

3 participants