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

Compute ETH values based on wei #504

Merged
merged 7 commits into from
Nov 9, 2021
Merged

Conversation

lazynina
Copy link
Member

@lazynina lazynina commented Nov 9, 2021

There are rounding point errors when using Ether to compute the value in a transaction. Using BNs (big numbers) and making the computations in Wei as opposed to ETH should avoid these precision errors.

@lazynina lazynina requested a review from a team as a code owner November 9, 2021 02:34
@lazynina lazynina merged commit 8c72c32 into main Nov 9, 2021
@lazynina lazynina deleted the ln/eth-computations-in-wei branch November 9, 2021 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants