Skip to content

test(disputes): guard resolution during pause and maintenance#1795

Closed
brentthomas248 wants to merge 3 commits into
QuickLendX:mainfrom
brentthomas248:test/dispute-pause-maintenance
Closed

test(disputes): guard resolution during pause and maintenance#1795
brentthomas248 wants to merge 3 commits into
QuickLendX:mainfrom
brentthomas248:test/dispute-pause-maintenance

Conversation

@brentthomas248

@brentthomas248 brentthomas248 commented Jul 2, 2026

Copy link
Copy Markdown

Closes #1722

Summary:

  • Add a focused Soroban regression proving resolve_dispute is rejected while the protocol is paused, in maintenance mode, and when both gates are active.
  • Add the existing pause and maintenance write guards to resolve_dispute.
  • Preserve read-only dispute detail access while writes are gated.
  • Repair a storage-free profit invariant unit test so the PR branch runs the current CI test step cleanly.

Tests:

  • cargo test -p quicklendx-contracts test_dispute_pause_maintenance -- --nocapture
  • cargo test -p quicklendx-contracts profits::tests::test_investor_platform_treasury_sum_invariant -- --nocapture
  • cargo test --verbose
  • cargo clippy -p quicklendx-contracts --all-targets -- -D warnings
  • git diff --check

Clean-clone patch check:

  • git apply --check --unidiff-zero against a fresh QuickLendX/quicklendx-protocol clone passed locally.

@Baskarayelu

Copy link
Copy Markdown
Contributor

thanks for the contribution! our workflow only merges a PR when its author is assigned to the linked issue — please get assigned to an open issue first, then raise the PR. closing as invalid for now 🙏

@Baskarayelu Baskarayelu closed this Jul 8, 2026
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 a regression proving resolve_dispute cannot run while the protocol is paused or in maintenance mode

2 participants