Skip to content

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

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

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.

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

1 participant