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

Remove tip from unclaimed rewards #84

Closed
alexkeating opened this issue Dec 11, 2024 · 1 comment · Fixed by #87
Closed

Remove tip from unclaimed rewards #84

alexkeating opened this issue Dec 11, 2024 · 1 comment · Fixed by #87
Assignees

Comments

@alexkeating
Copy link
Collaborator

Description

  • Withing bump earning power we should add
    // Send tip to the receiver
    SafeERC20.safeTransfer(REWARD_TOKEN, _tipReceiver, _requestedTip);
+   deposit.scaledUnclaimedRewardCheckpoint =
+      deposit.scaledUnclaimedRewardCheckpoint - (_requestedTip * SCALE_FACTOR);
@alexkeating
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant