Skip to content

[audit-12] Fix Recommendations. #1209

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

Open
wants to merge 4 commits into
base: ma/indexing-payments-audit-fixes-11-L-9
Choose a base branch
from

Conversation

matiasedgeandnode
Copy link
Contributor

@matiasedgeandnode matiasedgeandnode commented Jul 24, 2025

Screenshot 2025-07-25 at 11 12 34 Screenshot 2025-07-25 at 11 12 44 Screenshot 2025-07-25 at 11 12 57 Screenshot 2025-07-25 at 11 13 31

@matiasedgeandnode matiasedgeandnode force-pushed the ma/indexing-payments-audit-fixes-12-R-part-I branch from 5aadaeb to 62b61d6 Compare July 24, 2025 18:24
Copy link

openzeppelin-code bot commented Jul 24, 2025

[audit-12] Fix Recommendations.

Generated at commit: b492251395565ab97869b9e3e34b5840c1e6eb18

🚨 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

@matiasedgeandnode matiasedgeandnode force-pushed the ma/indexing-payments-audit-fixes-12-R-part-I branch from 1170b6a to fb71b75 Compare July 25, 2025 14:03
@matiasedgeandnode matiasedgeandnode requested review from Maikol, Copilot, pcarranzav and tmigone and removed request for Copilot July 25, 2025 14:10
Copilot

This comment was marked as spam.

@matiasedgeandnode matiasedgeandnode marked this pull request as ready for review July 25, 2025 14:11
@graphprotocol graphprotocol deleted a comment from Copilot AI Jul 25, 2025
@@ -577,7 +579,7 @@ library IndexingAgreement {
agreementId: params.agreementId,
collectionId: bytes32(uint256(uint160(wrapper.agreement.allocationId))),
tokens: expectedTokens,
dataServiceCut: 0,
dataServiceCut: params.indexingFeesCut,
Copy link
Member

Choose a reason for hiding this comment

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

This will send the cut to the subgraph service contract, which would require a contract update for those funds to be used/transferred, right? (Not a problem per se, but maybe worth documenting)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmmm... I believe this mimics what's done for query fees. Is that the case for query fees as well?

Copy link
Member

Choose a reason for hiding this comment

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

With query fees all of the data service fees are redistributed (as curation fees)

@matiasedgeandnode matiasedgeandnode force-pushed the ma/indexing-payments-audit-fixes-11-L-9 branch from dbe49d5 to 9423bfa Compare August 3, 2025 18:56
@matiasedgeandnode matiasedgeandnode force-pushed the ma/indexing-payments-audit-fixes-12-R-part-I branch from fb71b75 to f45f407 Compare August 3, 2025 19:00
@matiasedgeandnode matiasedgeandnode force-pushed the ma/indexing-payments-audit-fixes-11-L-9 branch from 9423bfa to 17b794e Compare August 3, 2025 19:25
@matiasedgeandnode matiasedgeandnode force-pushed the ma/indexing-payments-audit-fixes-12-R-part-I branch from f45f407 to b492251 Compare August 3, 2025 19:26
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.

2 participants