Skip to content

[audit-10] document: [TRST-L-7] update() #1207

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-09-L-6
Choose a base branch
from

Conversation

matiasedgeandnode
Copy link
Contributor

Screenshot 2025-07-24 at 11 09 21

This patch is NOT A FIX but rather adding some docs. Here's the rationale:

  1. Limited Impact: Opportunity for gain is limited to the last collection period.

  2. Mutual Agreement Required: The update() function requires a signed RCAU (Recurring Collection Agreement Update) from the payer. This means any pricing changes are explicitly
    agreed upon by both parties, not a unilateral action by the service provider. Both parties are aware of and consent to the new terms.

  3. Implementation Complexity: The suggested mitigation of updating lastCollectionAt to the current timestamp would create periods where no fees can be collected if indexers forget to collect in the same tx before updating. Forcing this collection would also complicate the code.

  4. Existing Safeguards: The protocol already has multiple safeguards:

    • Minimum and maximum collection windows (minSecondsPerCollection, maxSecondsPerCollection)
    • The requirement for authorized signatures on updates
    • Natural bounds on the affected time period

This PR adds a small bit of documentation to make this behavior explicit in the contract comments, ensuring all integrators understand the timing implications when implementing update strategies.

Copy link

openzeppelin-code bot commented Jul 24, 2025

[audit-10] document: [TRST-L-7] update()

Generated at commit: 308d6e6d07e6dfcf499494f47d06f8f9580bf1a7

🚨 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-09-L-6 branch from e071a73 to 1541b21 Compare August 3, 2025 18:54
@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-09-L-6 branch from 1541b21 to e3d2787 Compare August 3, 2025 19:25
@matiasedgeandnode matiasedgeandnode force-pushed the ma/indexing-payments-audit-fixes-10-L-7 branch from 087f300 to 308d6e6 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