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

bug: epoch is being increased multiple times when there is two or more plans sharing same staking coin denom #126

Closed
hallazzang opened this issue Sep 17, 2021 · 2 comments · Fixed by #128 or #143
Assignees
Labels
bug Something isn't working

Comments

@hallazzang
Copy link
Contributor

Description

For each AllocateRewards() call, the epoch of a staking coin denom should be increased by only 1.
But currently if there are two or more plans sharing same staking coin denom for their staking coin weights,
the epoch is being increased more than 1 times.

Version

master(60a8fd7)

@hallazzang hallazzang added the bug Something isn't working label Sep 17, 2021
@hallazzang hallazzang added this to the Farming F1 MVP milestone Sep 17, 2021
@hallazzang hallazzang self-assigned this Sep 17, 2021
@dongsam dongsam linked a pull request Sep 17, 2021 that will close this issue
9 tasks
@dongsam
Copy link
Contributor

dongsam commented Sep 17, 2021

Could you add a test code to validate this case does not occur anymore?
I heard you the test code would be included on #119 right?

@hallazzang
Copy link
Contributor Author

@dongsam Yes I'm adding tests to test if this issue has been resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants