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

Unit Representation for different currency values #556

Open
utkarshg6 opened this issue Nov 13, 2024 · 0 comments
Open

Unit Representation for different currency values #556

utkarshg6 opened this issue Nov 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@utkarshg6
Copy link
Collaborator

utkarshg6 commented Nov 13, 2024

We want a better method to represent balances.

For example:

- 10,000,000,000 wei can be represented as 10 gwei.
- 10,634,509,800 gwei can be represented as 10.634 Eth
-  123,987,621 wei can be represented as 0.123 gwei

We can use a U256 to store the number in Wei and then divide by billion as many times as it's required to get the unit we need.

@utkarshg6 utkarshg6 moved this to 🆕 New in MASQ Node v2 Nov 13, 2024
@kauri-hero kauri-hero added the enhancement New feature or request label Nov 17, 2024
@kauri-hero kauri-hero moved this from 🆕 New to 🔖 Ready in MASQ Node v2 Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🔖 Ready
Development

No branches or pull requests

2 participants