-
Notifications
You must be signed in to change notification settings - Fork 773
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
util: Change withdrawal amount representation from Wei to Gwei #2483
Conversation
Codecov Report
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
Hmm, given that we had these endless discussions and drafts on unit conversion, latest with #1842, I would feel uneasy if we now side introduce such a constant GWEI_TO_WEI
, and then even in the withdrawals
Util module.
On the other hand I agree that this is super-helful, even in this raw "just the factor" constant. 😋
Can we at least move this to a dedicated new module units
, where we can eventually expand from, maybe add 1-2 other small helper methods e.g. (and level down a bit from our previous ambitions)?
That would feel better to me, having this in withdrawals
would cause some level of technical debt - since people might directly import - if we finally want to expand a bit on the topic and include in a release.
sounds good! |
@holgerd77 i have created a minimal module |
rebased via ui |
f603a0a
to
572ebae
Compare
011823e
to
8a20fa2
Compare
Rebased this via UI |
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.
Looks good now! 👍
util: Change withdrawal amount representation for Wei to Gwei
ref: