Skip to content

[audit-01] fix: [TRST-H-1] IndexingAgreement.collect() on CanceledByPayer #1198

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 2 commits into
base: ma/indexing-payments-audited
Choose a base branch
from

Conversation

matiasedgeandnode
Copy link
Contributor

@matiasedgeandnode matiasedgeandnode commented Jul 23, 2025

Screenshot 2025-07-22 at 22 07 15

@matiasedgeandnode matiasedgeandnode changed the title fix: [TRST-H-1] IndexingAgreement.collect() on CanceledByPayer [audit-01] fix: [TRST-H-1] IndexingAgreement.collect() on CanceledByPayer Jul 23, 2025
Copy link

fix: [TRST-H-1] IndexingAgreement.collect() on CanceledByPayer

Generated at commit: 7fd8eedd373236f87be60c014e7aab3076457e4a

🚨 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

@@ -413,4 +413,11 @@ interface IRecurringCollector is IAuthorizable, IPaymentsCollector {
* @return The AgreementData struct containing the agreement's data.
*/
function getAgreement(bytes16 agreementId) external view returns (AgreementData memory);

/**
* @notice Checks if an agreement is collectable.
Copy link
Member

Choose a reason for hiding this comment

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

nit: might be worth explaining what it means that an agreement is collectable? (it could be misunderstood as meaning there are actually funds to collect)

skip(_expectedTokens.expectedTotalTokensCollected / terms.tokensPerSecond);
}

function _newExptectedTokens(uint256 _fuzzyTokensCollected) internal view returns (ExpectedTokens memory) {
Copy link
Member

Choose a reason for hiding this comment

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

nit: Exptected -> Expected

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