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

Open
alexkeating opened this issue Dec 11, 2024 · 1 comment · May be fixed by #87
Open

Remove tip from unclaimed rewards #84

alexkeating opened this issue Dec 11, 2024 · 1 comment · May be 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

@alexkeating alexkeating self-assigned this Dec 12, 2024
@alexkeating alexkeating linked a pull request Dec 13, 2024 that will close this issue
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