Skip to content

[audit-11] fix: [TRST-L-9] Cancel agreement if over-allocated #1208

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 1 commit into
base: ma/indexing-payments-audit-fixes-10-L-7
Choose a base branch
from

Conversation

matiasedgeandnode
Copy link
Contributor

Screenshot 2025-07-24 at 14 15 27

@matiasedgeandnode matiasedgeandnode force-pushed the ma/indexing-payments-audit-fixes-11-L-9 branch from 5c90356 to dbe49d5 Compare July 24, 2025 17:18
@matiasedgeandnode matiasedgeandnode changed the title fix: [TRST-L-9] Cancel agreement if over-allocated [audit-11] fix: [TRST-L-9] Cancel agreement if over-allocated Jul 24, 2025
Copy link

openzeppelin-code bot commented Jul 24, 2025

[audit-11] fix: [TRST-L-9] Cancel agreement if over-allocated

Generated at commit: 17b794e49c8144558210a04e93230761cfd7161f

🚨 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

Copy link
Member

@Maikol Maikol left a 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.

paymentsDestination[_indexer]
);

if (allocationForceClosed) {
Copy link
Member

Choose a reason for hiding this comment

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

Another option would be checking the allocation storage for the state after calling presentPOI it's slightly more expensive but we save on contract size, though I'm not sure where we're at with the new libraries.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

SubgraphService is ~23.4kb - So rather close.

@matiasedgeandnode matiasedgeandnode force-pushed the ma/indexing-payments-audit-fixes-10-L-7 branch from 3e8d93b to 087f300 Compare August 3, 2025 18:55
@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-10-L-7 branch from 087f300 to 308d6e6 Compare August 3, 2025 19:25
@matiasedgeandnode matiasedgeandnode force-pushed the ma/indexing-payments-audit-fixes-11-L-9 branch from 9423bfa to 17b794e Compare August 3, 2025 19:25
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