-
Notifications
You must be signed in to change notification settings - Fork 111
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
Wcusdcv3 rewards fix #1016
Wcusdcv3 rewards fix #1016
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change LGTM, have doubts if there is not an additional fix needed in L259
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a few comments, looks good overall.
I think it's also worth changing the RESCALE_FACTOR
to a uint256
. (GitHub doesn't let me comment on the line itself)
CometHelper
. It would actually be a much larger change to do this, and I don't think it's worth the cost. Just changing the storage type forbaseTrackingAccrued
is I think the minimal fix that is also slightly more robust than just adding auint256
cast to the broken multiplication in L:199.Needs review from everyone