Skip to content

[Feat]:: Added Market Pause and Resume Capabilities with Duration Limits#180

Merged
greatest0fallt1me merged 1 commit into
Predictify-org:masterfrom
ryzen-xp:Market-Pause-and-Resume-Capabilities
Oct 1, 2025
Merged

[Feat]:: Added Market Pause and Resume Capabilities with Duration Limits#180
greatest0fallt1me merged 1 commit into
Predictify-org:masterfrom
ryzen-xp:Market-Pause-and-Resume-Capabilities

Conversation

@ryzen-xp

Copy link
Copy Markdown
Contributor

Pull Request Description

Basic Information

Type: New feature (non-breaking)
Issue: Closes #61
Priority: Low

Description

Implements market pause/resume system for emergency maintenance. Admins can pause markets for 1-168 hours with automatic expiry. Includes pause state tracking, duration validation, and event emission.

Key Components:

  • pause_market() - Pause with duration limits
  • resume_market() - Manual resume before expiry
  • auto_resume_on_expiry() - Automatic resume on timeout
  • get_market_pause_status() - Query pause state
  • Admin-only access control with authorization

Contract Changes

  • New functions: pause_market, resume_market, auto_resume_on_expiry
  • New storage: MarketPauseInfo struct
  • New events: market_paused, market_resumed, market_auto_resumed
  • Access control: Admin authorization required
Screenshot from 2025-09-29 21-32-33 Screenshot from 2025-09-29 21-33-02

@greatest0fallt1me

Copy link
Copy Markdown
Contributor

@ryzen-xp Looks good, thanks for making those changes!

@greatest0fallt1me greatest0fallt1me merged commit b227880 into Predictify-org:master Oct 1, 2025
1 check passed
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.

Add Market Pause and Resume Capabilities with Duration Limits

2 participants