-
Notifications
You must be signed in to change notification settings - Fork 152
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
fix: set and hardcode minimum L2 curation to 1 GRT, enforce it in all cases, allow sub-epoch collect (OZ H-01) #874
Conversation
… cases, allow sub-epoch collect
fix: set and hardcode minimum L2 curation to 1 GRT, enforce it in all cases, allow sub-epoch collect (OZ H-01)
🚨 Vulnerabilities Summary
For more details view the full report in OpenZeppelin Code |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## pcv/require-epoch-for-collect #874 +/- ##
=================================================================
+ Coverage 92.59% 92.62% +0.02%
=================================================================
Files 47 47
Lines 2364 2372 +8
Branches 432 434 +2
=================================================================
+ Hits 2189 2197 +8
Misses 175 175
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
Looks good to me. Do we want to update the graph.network.yml
configs with the updated minimumCurationDeposit
values?
|
||
// Get the amount of tokens to refund based on returned signal | ||
uint256 tokensOut = signalToTokens(_subgraphDeploymentID, _signalIn); | ||
|
||
if (previousCuratorSignal > _signalIn) { |
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.
pedantic nit, this could be previousCuratorSignal != _signalIn
and save a little gas. Though not sure how you feel about code readability.
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.
Good point, but yeah for now I'll leave it like this for readability
No description provided.