dOrgTech / homebase-lite-app

MIT License
4 stars 1 forks source link

Token number display on proposals #24

Closed magentaceiba closed 1 year ago

magentaceiba commented 2 years ago

Description (what needs to be done) / Expected Behavior

On the single proposal view, the frontend should know the decimal value of token and divide the tokens value from the backend with that number

Eg -

100000000000 - Value Decimal - 6 Display on Frontend - 100000000000/10 ** 6 = 100000

On the proposals summary page for each community, the display for # of tokens voting for each option should calculate as above, and abbreviate the display as follows:

K as a symbol for 1000, and M as a symbol for 1,000,000 (one million) Eg -If there were 10,207,430 tokens voting yes, that would display as 10.2M. If 1200, display 1.2K. If 1022, display 1K.

Acceptance Criteria The individual proposal page shows the above notation format, and the proposals summary page shows the above abbreviation format.

Supporting information (Figma link, notes, etc)

When finished, please add Link to the PR or completed Figma / design asset, as a comment to the ticket.

fabiolalombardim commented 2 years ago

Fixed on PR https://github.com/dOrgTech/homebase-lite-app/pull/19

magentaceiba commented 1 year ago

Pushed with PR #19