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

Add rewards estimation #1

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

manumonti
Copy link
Member

@manumonti manumonti commented May 20, 2024

The rewards to be pushed (transferred from bot to TACoApp contract) must be calculated/estimated.

As a first iteration and considering that this is intended to be used in TACo testnet, the rewards is being calculated following this expression:

rewardsToBePushed = AuthorizedOverall * APY * (secondsElapsedSinceLastPush / 1 yearInSeconds)

where:

  • AuthorizedOverall is the sum of the T authorizations of all stakes and can be queried as a public variable from TACoApp contract.
  • APY is the Annual Percent Yield for TACo staking rewards. Currently, 3.75%.

This closes #3

@manumonti manumonti self-assigned this May 21, 2024
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.

Add function to estimate the rewards to be added to TACoRewardsDispenser contract
1 participant