-
Notifications
You must be signed in to change notification settings - Fork 158
[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
base: ma/indexing-payments-audit-fixes-10-L-7
Are you sure you want to change the base?
[audit-11] fix: [TRST-L-9] Cancel agreement if over-allocated #1208
Conversation
matiasedgeandnode
commented
Jul 24, 2025

5c90356
to
dbe49d5
Compare
[audit-11] fix: [TRST-L-9] Cancel agreement if over-allocated
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
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.
paymentsDestination[_indexer] | ||
); | ||
|
||
if (allocationForceClosed) { |
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.
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.
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.
SubgraphService is ~23.4kb - So rather close.
3e8d93b
to
087f300
Compare
dbe49d5
to
9423bfa
Compare
087f300
to
308d6e6
Compare
9423bfa
to
17b794e
Compare