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

Balance chart amounts are wrong #2868

Closed
reyraa opened this issue Apr 24, 2020 · 1 comment
Closed

Balance chart amounts are wrong #2868

reyraa opened this issue Apr 24, 2020 · 1 comment
Assignees
Milestone

Comments

@reyraa
Copy link
Contributor

reyraa commented Apr 24, 2020

Description

The balance chart amounts don't seem to be correct. The balance should be calculated retrospectively as below:
Value of each data is calculated as the balance of the day before minus wheat ever spent or received today, meaning if balance today is 100 and you spent 10 LSK yesterday (-10) then your balance before that withdrawal was 110.

yesterdayBalance = todayBalance - yesterdayWithdrawal
balance 79 75 70 70
txAmount N -4 -5 -
Date 8.2 9.2 10.2 Now
@reyraa
Copy link
Contributor Author

reyraa commented Apr 30, 2020

Fixed by #2886

@reyraa reyraa closed this as completed Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant