Skip to content

Document the advanced duration default as 2 days - #6

Merged
daedboi merged 1 commit into
mainfrom
standard-duration-2-day
Aug 10, 2026
Merged

Document the advanced duration default as 2 days#6
daedboi merged 1 commit into
mainfrom
standard-duration-2-day

Conversation

@daedboi

@daedboi daedboi commented Aug 10, 2026

Copy link
Copy Markdown
Member

The advanced auction window changed from 7 days to 2 days when its timelock executed (advancedDuration() = 172800s on all four chains). The 2-14 day admin range is unchanged, as is the immutable 24-hour ADVANCED_START_DELAY.

Changes

  • SPEC.md:55 — presale-duration row
  • SPEC.md:186 — the launch-lifecycle mermaid diagram, which read contribution window (24h / 7d)
  • AGENTS.md:56 — the ADVANCED summary line
  • script/02_DeployFactory.s.sol:53vm.envOr("ADVANCED_DURATION", 7 days)2 days

That last one is the same class of drift caught on the graduation fallback in #5: with the docs saying 2d and the script defaulting to 7d, a deployment relying on documented defaults would have got a window 3.5× too long.

Deliberately unchanged

Five test/script fixtures pass advancedDuration: 7 days explicitly:

script/test/DryRunAll.s.sol:100 · test/unit/DeployConfigs.t.sol:102 · test/unit/LaunchFactory.t.sol:186 · test/integration/IntegrationBase.t.sol:399 · test/unit/PresaleManager.t.sol:395

Each constructs its own FactoryParams and round-trips the value — LaunchFactory.t.sol:368 asserts factory.advancedDuration() == ADVANCED_DURATION against the test's own constant, not the shipped default. They assert behaviour, and 7 days is still legal inside the 2-14 day range. Same reasoning applied to the 5 ether fixtures in #5.

forge build and test/unit/DeployConfigs.t.sol (9 tests) pass.

Note

CLAUDE.md and .cursor/rules/boardwalk.mdc carry the same stale ADVANCED line but are gitignored here, so they cannot ride this PR. I updated them locally; anyone else's checkout will still teach agents 7d until they refresh.

The advanced auction window changed from 7 days to 2 days when its timelock
executed. SPEC.md and AGENTS.md still described 7d as the default, and
`02_DeployFactory` fell back to `7 days` when ADVANCED_DURATION was unset — the
same drift the graduation fallback had.

The 2-14 day admin range is unchanged, as is the immutable 24-hour
ADVANCED_START_DELAY.

Test fixtures that pass `advancedDuration: 7 days` explicitly are left alone:
they construct their own params and round-trip them, so they assert behaviour
rather than the shipped default, and 7 days is still a legal value.
@cursor

cursor Bot commented Aug 10, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Documentation and deploy-script default only; no on-chain logic changes and behavior already matches 2d on live factories.

Overview
ADVANCED presale duration default is documented and deployed as 2 days everywhere it was still 7 days, after the factory timelock already set advancedDuration() to 172800s on chain. The 2–14 day admin range and 24h ADVANCED start delay are unchanged.

Updates: AGENTS.md ADVANCED path line, SPEC.md launch-path table and presale lifecycle diagram (contribution window 24h / 2d), and script/02_DeployFactory.s.sol ADVANCED_DURATION vm.envOr fallback 7 days → 2 days so greenfield deploys without env match the spec (same drift class as graduation defaults in #5).

No Solidity or test changes; explicit 7 days fixtures in tests/scripts stay valid inside the allowed range.

Reviewed by Cursor Bugbot for commit 7e2c5aa. Configure here.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 58 minutes

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2143e4c8-ae6f-4dcf-bb98-9acda1e6395b

📥 Commits

Reviewing files that changed from the base of the PR and between dbd0d0c and 7e2c5aa.

📒 Files selected for processing (3)
  • AGENTS.md
  • SPEC.md
  • script/02_DeployFactory.s.sol

Comment @coderabbitai help to get the list of available commands.

@daedboi
daedboi merged commit dc63be9 into main Aug 10, 2026
4 checks passed
@daedboi
daedboi deleted the standard-duration-2-day branch August 10, 2026 11:34
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.

1 participant