-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Consider correcting Bank::slots_per_year drift #10093
Comments
Yep it's a problem. At every Epoch we probably should adjust |
Per conversation with @mvines, we can change |
Update on this: However, it is not certain how the slots-per-year calculation ought to be corrected. Presumably we want the annualized interest rate to be correct, but we need to consider how much and how often we want the rate to drift (or correct itself). Since inflation is only just about to begin on mainnet-beta, it seems like we will want to observe and collect data for a while to make these determinations. |
Similarly to #9874, inflation and rent calculations are based on a theoretical number of slots per year:
solana/runtime/src/bank.rs
Lines 939 to 943 in 5e89bd8
At the time of this issue, the actual slots_per_year rate appears to be about 1 week ahead of the theoretical, meaning that inflation will taper faster than expected and rent will become due sooner:
Let's decide if this even is a problem first.
The text was updated successfully, but these errors were encountered: