We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When in CLI consumer is asking to show balance, this is an ideal time to recalculate "true" balance.
Consumer balance can be calculated this way: Balance (to spend) = BCBalance - (accountantPromised - BCSettled)
caller, _ := bindings.NewMystTokenCaller() BCBalance = caller.BalanceOf() caller, _ := bindings.NewChannelImplementation() BCSettled = caller.Accountant().Settled accountantPromised = boltDB.issued_invoices.AgreementTotal
We should also store in boltdb last issued promise. If it's not there, we should ask for own latest promise from the accountant.
Ideally, we could also have "recalculate balance" button in WebUI.
The text was updated successfully, but these errors were encountered:
Simplify balance calculations
109fb3b
Fixes #1869 Fixes #1724
ab1c125
988d80f
760cc5b
vkuznecovas
Successfully merging a pull request may close this issue.
When in CLI consumer is asking to show balance, this is an ideal time to recalculate "true" balance.
Consumer balance can be calculated this way:
Balance (to spend) = BCBalance - (accountantPromised - BCSettled)
We should also store in boltdb last issued promise. If it's not there, we should ask for own latest promise from the accountant.
Ideally, we could also have "recalculate balance" button in WebUI.
The text was updated successfully, but these errors were encountered: