Skip to content

feat: implement coordinated emergency mode across Market/Treasury/Resolution (#662) - #675

Merged
Mimah97 merged 2 commits into
Vatix-Protocol:devfrom
vrickish:vrick_issue_662
Jul 30, 2026
Merged

feat: implement coordinated emergency mode across Market/Treasury/Resolution (#662)#675
Mimah97 merged 2 commits into
Vatix-Protocol:devfrom
vrickish:vrick_issue_662

Conversation

@vrickish

Copy link
Copy Markdown
Contributor

Closes #662

What does this PR do?

  • Adds a coordinated emergency mode enum (Normal | TradingHalted | SettleOnly | GlobalFreeze) to Market, Treasury, and Resolution contracts
  • Market defines the primary enum storage + admin setter + view; Treasury and Resolution hold mirrored storage with independent admin setters
  • TradingHalted blocks deposit/trade/propose (Market + Resolution) while allowing withdraw + settle + resolve
  • SettleOnly blocks deposit/trade/propose/resolve while allowing settle + withdraw
  • GlobalFreeze blocks all non-admin operations across all three contracts
  • Adds error variant to each contract
  • Adds event to each contract for off-chain observability
  • Bumps Market STORAGE_VERSION from 4→5 and Treasury STORAGE_VERSION from 2→3
  • All admin operations remain functional regardless of emergency mode

Victor Uchechukwu and others added 2 commits July 30, 2026 04:19
…olution (Vatix-Protocol#662)

## Closes Vatix-Protocol#662

### What does this PR do?
* Adds a coordinated emergency mode enum (Normal | TradingHalted | SettleOnly | GlobalFreeze) to Market, Treasury, and Resolution contracts
* Market defines the primary enum storage + admin setter +  view; Treasury and Resolution hold mirrored storage with independent admin setters
* TradingHalted blocks deposit/trade/propose (Market + Resolution) while allowing withdraw + settle + resolve
* SettleOnly blocks deposit/trade/propose/resolve while allowing settle + withdraw
* GlobalFreeze blocks all non-admin operations across all three contracts
* Adds  error variant to each contract
* Adds  event to each contract for off-chain observability
* Bumps Market STORAGE_VERSION from 4→5 and Treasury STORAGE_VERSION from 2→3
* All admin operations remain functional regardless of emergency mode
@Mimah97
Mimah97 merged commit aaa9731 into Vatix-Protocol:dev Jul 30, 2026
0 of 4 checks 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.

Coordinated emergency mode: pause trading, allow settle/withdraw across contracts

2 participants