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

chore(contracts): rewrite getEpochReward and add getEpochAllocation #36

Closed

Conversation

developerfred
Copy link

Related GitHub Issue

closes #24

How Has This Been Tested?

Sector#3 Contribution

@aahna-ashina
Copy link
Member

aahna-ashina commented Mar 14, 2023

@developerfred In #56 this was implemented by only including epochs that have at least 1 contribution. So if an epoch had zero contributions, its funding would be shifted to the following epoch.

Does this PR have that same logic, or did you have another idea in mind?

@developerfred
Copy link
Author

@aahna-ashina This pull request involves calculating the allocation based on the contribution made. If I did not contribute in the epoch, I do not have the right to calculate the allocation. I understand that the implementation of #56 has an additional feature, which allows the allocation to be transferred to the next epoch. Therefore, we can close this pull request.

@aahna-ashina
Copy link
Member

Superseded by #69

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.

Calculate funding of previous epochs before claiming reward
2 participants