-
Notifications
You must be signed in to change notification settings - Fork 154
[TRIVIAL] Unify eth monetary units #3970
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
Conversation
m-sz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nits, otherwise it looks good!
I like how the extension trait makes the amounts read naturally: 1 ETH, 1 WEI, etc.
MartinquaXD
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't spot any wrong number conversions.
No strong preference on the USDC comment so I'm fine with merging without resolving that.
Description
Unifies ethereum units under one API
Changes
to_wei,to_wei_with_exp,ethand theUnit::XapproachesHow to test
Existing tests