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

UI token amount results in different numbers on chain #2053

Open
shayanb opened this issue Mar 12, 2023 · 2 comments
Open

UI token amount results in different numbers on chain #2053

shayanb opened this issue Mar 12, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@shayanb
Copy link

shayanb commented Mar 12, 2023

Describe the bug
Seems that the number formatter for the number of voting tokens is different in different views. Sometimes 10 means 10 voting tokens, some other times it means 10 / 10^18 tokens. I'll explain the work flow we used that resulted in such issue in to reproduce

To Reproduce
Steps to reproduce the behavior:

  1. Summoned a DAO with 2 initial members each having 10 voting tokens (this resulted in 2 members with 10 voting tokens each)
  2. Propose to add 5 members each with 10 voting tokens. (this resulted in each new member having 0.00000000000000001 tokens.

Expected behavior

When typing in 10 in the DAOHaus form, expected behaviour is to always result in the same number on chain. either both to be 10 or both to be 10 "wei".

Actual behavior

On the summoning DAO form 10 means 10 * 10^18 in the sense of token amount
On the proposal view to add members 10 means 10 wei in the sense of token amount

Screenshots
Screenshot 2023-03-12 at 4 32 41 PM
Screenshot 2023-03-12 at 4 32 26 PM

Additional Questions

  1. [ Maybe?] Is there a loss of funds, shares or loot?

Application area

Where in the app is this happening?

  • FrontEnd (please include route/section if possible)

  • Integration or Boost

  • Browser: Chrome

  • Version: Latest

@shayanb shayanb added the bug Something isn't working label Mar 12, 2023
@dekanbro
Copy link
Contributor

thank you for reporting the issue. Can i confirm this is on the v2 summoner or the v3?

this is v2
https://app.daohaus.club/summon

and this is the v3 summoner
https://summon.daohaus.club/

@shayanb
Copy link
Author

shayanb commented Mar 13, 2023

I believe V3, I used this url though: https://admin.daohaus.fun/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants