Skip to content

feat: add cumulative extension cap (72h max) to extend_for_dispute#756

Merged
greatest0fallt1me merged 1 commit into
Predictify-org:masterfrom
Hassanmovic98:feature/extension-cap
Jun 28, 2026
Merged

feat: add cumulative extension cap (72h max) to extend_for_dispute#756
greatest0fallt1me merged 1 commit into
Predictify-org:masterfrom
Hassanmovic98:feature/extension-cap

Conversation

@Hassanmovic98

@Hassanmovic98 Hassanmovic98 commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Closes #710


Description

Adds cumulative extension cap enforcement to the extend_for_dispute function. Markets can now extend deadlines for disputes, but total extensions are capped at 72 hours to prevent indefinite deadline extensions.

Changes

  • Modified extend_for_dispute() to return Result<(), Error>
  • Tracks cumulative extension hours in Market struct
  • Enforces maximum 72-hour cap before allowing new extensions
  • Returns ExtensionCapExceeded error when cap is exceeded

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)

Testing

Contract compiles successfully with no errors.

@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

@Hassanmovic98 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@greatest0fallt1me greatest0fallt1me merged commit 944df46 into Predictify-org:master Jun 28, 2026
1 check failed
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 cumulative extension cap per market

2 participants