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

Stop farm owner from withdrawing users' unclaimed rewards. #22

Merged
merged 3 commits into from
Sep 8, 2023
Merged

Conversation

deuszx
Copy link
Collaborator

@deuszx deuszx commented Sep 7, 2023

No description provided.

farm/contracts/lib.rs Outdated Show resolved Hide resolved
farm/contracts/lib.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@DamianStraszak DamianStraszak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good now.

I'm thinking if there is a way to refactor a bit to extract the common logic between rewards_distributable and rewards_per_token -- but it's not super crucial

@deuszx deuszx merged commit b9b9d72 into main Sep 8, 2023
1 check passed
@deuszx deuszx deleted the fix-stop branch September 8, 2023 08:01
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.

2 participants