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] Update stake display to use large number nomenclature #296

Open
idiom-bytes opened this issue Feb 6, 2024 · 0 comments
Open

[UI] Update stake display to use large number nomenclature #296

idiom-bytes opened this issue Feb 6, 2024 · 0 comments
Assignees
Labels

Comments

@idiom-bytes
Copy link
Member

idiom-bytes commented Feb 6, 2024

Motivation

See screenshot below, in the "stake" column. Numbers are getting > 100,000 OCEAN and expected to rise further.

Therefore we should adjust the display of the "stake" numbers to use large number nomenclature.

  • K - Thousand
  • M - Million

Py implementation

pdr-backend's strutil.py has a python implementation prettyBigNum() plus unit tests. It could be readily adapted to JS. I strongly recommend writing the tests first, then working backwards, because implementation time will be faster and the final result will be more robust.

Screenshot - Status quo

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants