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

Add rounding values before computing balance changes #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oliverlj
Copy link

@oliverlj oliverlj commented Jan 25, 2023

closes #5
Idea here is to round values (final balance and previous balance) before to compute balance change.
Exemple with this transaction : https://livenet.xrpl.org/transactions/07DDA81E8631470660823F9BE9ABE926907EE67C6928EDE8BF8703B0932080AB/detailed

balance change is 1,345.28625681 from 1,935.1841073 to 3,280.4703641

With this change, the balance change computed will be 1,345.2862568 instead of 1,345.28625681

Copy link

@SirJosh1987 SirJosh1987 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello world it's SirJosh1987 am I causing any issues?

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.

token amount are truncated to six decimal places
2 participants