Skip to content

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.

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

<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.

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.
Signed-off-by: Philemon Ukane <[email protected]>
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