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

multi: implement stake reward calculator #1949

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ukane-philemon
Copy link
Collaborator

@ukane-philemon ukane-philemon commented Dec 22, 2022

This implements a stake reward calculator and reactors an existing method to work with the stake reward calculator. Closes #1772.

-- Add a new GET /stake-reward endpoint.
-- Add a new POST /stake-reward endpoint.
-- Add a responsive stake reward calculator page.

While I could shut down n restart anytime to test other stuff but you can see the calculator here:
http://134.209.25.156:7777/stake-reward

UI view:
Screenshot 2022-12-21 at 8 40 01 PM
Screenshot 2022-12-22 at 6 02 01 AM
Screenshot 2022-12-22 at 6 02 43 AM

This implements a Decred stake calculator, where users can provide how much to stake
and get an estimate of their rewards over the specified duration.
- New Endpoints added ("GET /stake-reward" and "POST /stake-reward").
- New Stake Calculator Page added.
@@ -98,7 +98,7 @@
<span class="patty"></span>
<span class="patty"></span>
<span class="patty short"></span>
<div id="menu">
<div id="menu" style="max-height: 90vh; overflow-x: hidden;">
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have noticed the menu cuts a lot of the menu items out of view when the current view height is less than its full height. This will ensure dcrdata users can scroll the menu because we "could" add more items(maybe) but will not be limited anymore.

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

Successfully merging this pull request may close these issues.

Staking rewards calculator
1 participant