-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: Continuous index across disabling/enabling of earning #106
base: feat/no-claim-on-transfer-2
Are you sure you want to change the base?
Conversation
LCOV of commit
|
} | ||
|
||
/// @inheritdoc IWrappedMToken | ||
function startEarningFor(address account_) external { | ||
if (!isEarningEnabled()) revert EarningIsDisabled(); |
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.
Shouldn't we still revert if earning is currently disabled?
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.
No. There is no harm to allowing starting earning when earning is disabled since when the index is continuous it will be fixed at whatever it is until earning is enabled again, and after that it will grow from that point when enabled.
ef65c39
to
482df44
Compare
c64dd91
to
fcdd8b7
Compare
No description provided.