Skip to content

unpause: extend time-based windows by the pause duration #139

Description

@0xdevcollins

Source: docs/threat-model.md v1.0, DoS.10 (planned hardening).

The 90-day prize-claim window (EventPrizeClaimExpiry, timestamp-based) keeps running while the contract is paused, and claim_prize is pause-gated. A pause that outlasts a window lets start_cancel sweep unclaimed prizes immediately after unpause without winners ever having had a claimable window. Pending manager proposals (17,280 ledgers) and admin rotations (120,960) can likewise expire during a long pause.

  • Record the pause timestamp/ledger in pause; on unpause, extend every open EventPrizeClaimExpiry by the pause duration (or simplest: block start_cancel's expiry check for pause_duration after unpause)
  • Decide whether proposal expiries should also be extended; document in the runbook if not
  • Tests around a pause spanning the window

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions