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

How to calculate startBalance? #46

Open
TriplEight opened this issue May 17, 2022 · 2 comments
Open

How to calculate startBalance? #46

TriplEight opened this issue May 17, 2022 · 2 comments

Comments

@TriplEight
Copy link

I think this either can be implemented programmatically or explained how to figure its precise amount in the README.
I couldn't retrieve it either from subscan.io or polkascan.io.

@TriplEight
Copy link
Author

I just realized it doesn't affect the outcome.

@jonasW3F
Copy link
Collaborator

The startBalance does not affect anything except the calculated annualized return in the .json files. For this number to be correct you need the following properties:

  1. The stake generating the staking rewards should not change (except getting the rewards).
  2. The starting balance is set correctly.

Solving this programmatically would be (too) complex. Even if there is an API call that gives you the balance of an account at a certain date from subscan (which I believe is not available), you'd need to account for withdrawals and deposits on the account that generates the stake (which might not even be the one that receives the staking rewards).

Therefore, this is only really viable for people that want to estimate their staking APY by noting the starting balance and not touching the underlying stash.

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

No branches or pull requests

2 participants