Skip to content

Document a tradingDelay of 2 to 4 governance cycles - #1317

Merged
tbrent merged 6 commits into
4.3.0-audit-commentsfrom
4.3.0-audit-trading-delay-docs
Dec 1, 2026
Merged

tbrent merged 6 commits into
4.3.0-audit-commentsfrom
4.3.0-audit-trading-delay-docs

Conversation

@tbrent

@tbrent tbrent commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Documents a tradingDelay of 2 to 4 governance cycles, replacing the old range of 0 to 7 days.

Stacked on #1316.

Why

Trust audit finding "tradingDelay is documented with 0-7 days" (QA).

From 4.3.0 the delay gives governance time to choose a better basket after an emergency basket change. One governance cycle is 8 days for eUSD, ETH+, USD3, and bsdETH (2 day voting delay, 3 day voting period, 3 day timelock), so a delay of 7 days or less ends before governance can act.

The range is expressed in governance cycles rather than fixed durations, so it stays right for an RToken with a different cycle.

Changes

  • docs/deployment-variables.md: reasonable range is now 2 to 4 governance cycles (1382400 to 2764800 for an 8 day cycle), with a sentence on why the delay should be a multiple of the cycle. The documented default moves from 0 to 2 governance cycles so it sits inside the range.

Docs only. No contract or deployment config changes.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated the documented tradingDelay default to two governance cycles (16 days) and its reasonable range to two to four cycles (16–32 days) for eUSD, ETH+, USD3, and bsdETH.
    • Clarified that the delay should be a multiple of the governance cycle.
    • Retained the note about delays after basket changes before version 4.3.0.

The delay exists to give governance time to choose a better basket after
an emergency basket change, so it should be longer than one governance
cycle (8 days for the live RTokens). The documented range of 0 to 7 days
was too short.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 45 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7b7050e2-e2d8-49f7-aac5-0273b4756e09
Commits

Reviewing files that changed from the base of the PR and between edc1796 and 516bcea.

Files selected for processing: 1

  • docs/deployment-variables.md

No actionable comments were generated in the recent review.

Walkthrough

The tradingDelay documentation now recommends values based on governance cycles. It gives an 8-day cycle for four tokens, sets the documented default to two cycles, and sets the reasonable range to two to four cycles. The pre-4.3.0 note remains.

Changes: Trading delay documentation

Layer / File(s) Summary
Trading delay guidance
docs/deployment-variables.md
The documentation defines the governance-cycle guidance and 8-day examples. It updates the default to 1,382,400 seconds and the reasonable range to 1,382,400–2,764,800 seconds. The note about delays after basket changes before version 4.3.0 remains.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Possibly related PRs

Suggested reviewers: akshatmittal

Merge Risk: Minimal · previous review c5615

This updates the tradingDelay guidance to a governance-cycle-based range and changes no contract or deployment behavior. The numbers are consistent with an 8-day cycle, so the change is safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title states the main change: the tradingDelay documentation now describes a range of 2 to 4 governance cycles. The raw summary confirms the docs change the default and the range to governance-cyc…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title states the main change: the tradingDelay documentation now describes a range of 2 to 4 governance cycles. The raw summary confirms the docs change the default and the range to governance-cycle multiples, and the PR objectives confirm the commit message reframes the range as governance cycles. The title is specific and matches the changeset, so it passes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 401bb2e6-cf06-472b-b6e4-18263d439597
Commits

Reviewing files that changed from the base of the PR and between cdbc8f8 and c56151f.

Files selected for processing: 1

  • docs/deployment-variables.md

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@akshatmittal
akshatmittal added this pull request to stack #1318 November 27, 2026 19:44
tbrent and others added 2 commits November 27, 2026 19:47
2 to 4 governance cycles, instead of a fixed 2 to 4 weeks.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@tbrent tbrent changed the title Document a 2 to 4 week tradingDelay Document a tradingDelay of 2 to 4 governance cycles Nov 30, 2026
akshatmittal
akshatmittal previously approved these changes Nov 30, 2026
@tbrent
tbrent merged commit bd01378 into master Dec 1, 2026
17 of 33 checks passed
@tbrent
tbrent deleted the 4.3.0-audit-trading-delay-docs branch December 1, 2026 17:31
tbrent added a commit that referenced this pull request Dec 1, 2026
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
tbrent added a commit that referenced this pull request Dec 1, 2026
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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