-
Notifications
You must be signed in to change notification settings - Fork 2
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
refactor: account for staking contract deposit value #186
Conversation
kupermind
commented
Jul 16, 2024
- Account for staking contract deposit value.
return false; | ||
} | ||
|
||
// Check for time for emissions |
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.
// Check for time for emissions | |
// Check for time for emissions. This lets the verifier enforce an upper bound on the emissions length for risk mitigation. |
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.
@kupermind confirming that timeForEmissions is related to activity period?
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, it's related to emissionsAmount
of instance that requests that amount from the incentive dispenser.
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.
I was thinking of livenessPeriod.
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.
Can we add the relevant getters so a future Verifier can also impose constrains on livenessPeriod?
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.
You mean add the livenessPeriodLimit
variable?
address implementation = instanceParams.implementation; | ||
|
||
// Check that the implementation corresponds to the proxy instance | ||
if (implementation == address(0)) { | ||
return false; | ||
} |
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.
Why was this removed?
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.
This check is now useless, it was left there before the struct with implementation / deployer / isEnabled existed. The isEnabled
is what matters, and if the implementation
is zero, the isEnabled
is false by default.
return false; | ||
} | ||
|
||
// Check for time for emissions |
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.
Can we add the relevant getters so a future Verifier can also impose constrains on livenessPeriod?