Skip to content

Conversation

tmigone
Copy link
Member

@tmigone tmigone commented Mar 25, 2025

No description provided.

Copy link

openzeppelin-code bot commented Mar 25, 2025

Horizon: pending changes after audit

Generated at commit: c0e83cfa720ad8dde4c8ed7e6b666b812a159995

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
4
0
15
39
60
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@tmigone tmigone force-pushed the horizon-oz2/pending-fixes branch from 84e6c15 to e68d12d Compare March 28, 2025 18:53
@tmigone tmigone force-pushed the horizon-oz2/pending-fixes branch from e8a47dd to f2c3b7e Compare April 23, 2025 14:28
@tmigone tmigone force-pushed the horizon-oz2/pending-fixes branch from f2c3b7e to 82e68ab Compare April 30, 2025 15:28
@tmigone tmigone changed the base branch from horizon to horizon-oz2/h02-delegation-slashing April 30, 2025 15:28
@tmigone tmigone changed the title Horizon OZ2 audit - pending fixes Horizon: pending changes after audit Apr 30, 2025
Copy link

codecov bot commented Apr 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (horizon-oz2/h02-delegation-slashing@50d57e6). Learn more about missing BASE report.

Additional details and impacted files
@@                          Coverage Diff                           @@
##             horizon-oz2/h02-delegation-slashing    #1131   +/-   ##
======================================================================
  Coverage                                       ?   92.56%           
======================================================================
  Files                                          ?       47           
  Lines                                          ?     2435           
  Branches                                       ?      440           
======================================================================
  Hits                                           ?     2254           
  Misses                                         ?      181           
  Partials                                       ?        0           
Flag Coverage Δ
unittests 92.56% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tmigone tmigone force-pushed the horizon-oz2/h02-delegation-slashing branch 2 times, most recently from bd9bf6d to cd9197a Compare April 30, 2025 18:57
@tmigone tmigone force-pushed the horizon-oz2/pending-fixes branch from 82e68ab to 46013e9 Compare April 30, 2025 19:15
@tmigone tmigone force-pushed the horizon-oz2/h02-delegation-slashing branch 3 times, most recently from 88312ff to 42ef624 Compare May 2, 2025 18:00
@tmigone tmigone force-pushed the horizon-oz2/pending-fixes branch from 46013e9 to 290b8f9 Compare May 2, 2025 18:15
require(allocation.isOpen(), AllocationManagerAllocationClosed(_allocationId));

uint256 currentEpoch = _graphEpochManager().currentEpoch();
// uint256 currentEpoch = _graphEpochManager().currentEpoch();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leftover commented code

uint256 curationCut = _curation().isCurated(subgraphDeploymentId) ? curationFeesCut : 0;
tokensCollected = _graphTallyCollector().collect(
IGraphPayments.PaymentTypes.QueryFee,
abi.encode(signedRav, curationCut),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the payment destination be encoded here too?

@tmigone tmigone force-pushed the horizon-oz2/pending-fixes branch 2 times, most recently from be57dab to 83f40a8 Compare May 9, 2025 18:23
@tmigone tmigone force-pushed the horizon-oz2/h02-delegation-slashing branch from 42ef624 to 9ce4d11 Compare May 16, 2025 12:28
@tmigone tmigone force-pushed the horizon-oz2/pending-fixes branch from 83f40a8 to c0e83cf Compare May 16, 2025 12:31
Base automatically changed from horizon-oz2/h02-delegation-slashing to horizon May 20, 2025 16:57
@tmigone tmigone marked this pull request as ready for review May 20, 2025 16:57
@tmigone tmigone merged commit c0e83cf into horizon May 20, 2025
2 checks passed
@Maikol Maikol deleted the horizon-oz2/pending-fixes branch May 20, 2025 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants