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 function to estimate the rewards to be added to TACoRewardsDispenser contract #3

Open
manumonti opened this issue Jul 4, 2024 · 0 comments · May be fixed by #1
Open

Add function to estimate the rewards to be added to TACoRewardsDispenser contract #3

manumonti opened this issue Jul 4, 2024 · 0 comments · May be fixed by #1

Comments

@manumonti
Copy link
Member

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

@manumonti manumonti linked a pull request Jul 4, 2024 that will close this issue
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 a pull request may close this issue.

1 participant