-
Notifications
You must be signed in to change notification settings - Fork 34
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
docs: Update staking rewards graph #774
Conversation
332b9f4
to
ca13682
Compare
✅ Deploy Preview for oasisprotocol-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
a54ca4f
to
efd3c8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a record to the Changelog section at the end of this page. Something like:
- Mar 28, 2024:
- Updated Staking Rewards Schedule based on the [Staking parameters change proposal](https://www.oasisscan.com/proposals/4) passed Mar 26 2024.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also update the change log section to specify that the reward schedule has been adjusted after governance proposal 4 passed which changed the schedule.
13e1964
to
0b161dc
Compare
src/staking_rewards/data.csv
Outdated
36858,2024-11-22T19:18:00.888Z,0.000003,0.0269 | ||
36882,2024-11-23T18:42:36.598Z,0.000002,0.0180 | ||
36930,2024-11-25T17:31:48.019Z,0.000001,0.0090 | ||
81662,2030-01-01T00:00Z,0.000283,2.5741 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data.json says until epoch 90000, not 81662
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it would look nicer if the graph ended in 2030 rather than on a random date. Do the JSON and csv need to match?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That doesn't make sense. CSV doesn't affect the graph
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either way, don't manipulate the data, especially the data that users download and analyze and make own graphs out of. IF we want to display less data then we should change that in the display component 🤷
and that can be a separate pullrequest if tadej insists on not letting users to zoom where they want to
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this makes sense. I changed the CSV to include epoch 90000. We can create a new pr for the display component if needed. I also think it is nicer to show all the data and then can users to zoom in if they want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new graph looks too wide because it is effectively computed until year 2031.
Can we start by narrowing it to 2020 -> 2028?
1405820
to
518f2bb
Compare
518f2bb
to
4fd8773
Compare
4fd8773
to
603d3dd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is good as it reflects the updated schedule. We can further adjust the chart in subsequent PRs.
Preview: https://deploy-preview-774--oasisprotocol-docs.netlify.app/general/oasis-network/token-metrics-and-distribution#staking-incentives