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

[MEX-650] Fix user outdated contracts when no rewards are produced #1543

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

claudiulataretu
Copy link
Collaborator

Reasoning

  • user outdated contracts were added to the list even though the contract was not producing rewards anymore
  • it should not be an outdated contract if there are no rewards being produced and the total rewards distributed in the current claim progress week for user is 0

Proposed Changes

  • added a check for the total rewards distributed for the user current claim progress

How to test

query UserOutdatedContracts {
    userOutdatedContracts {
        address
        type
        farmToken
        claimProgressOutdated
    }
}
  • query should not include contracts with stopped rewards for which user already claimed all the rewards

@claudiulataretu claudiulataretu merged commit 04ce5bd into development Jan 9, 2025
1 check failed
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.

3 participants