WIP: [CI SKIP] Add pause-only guardian and state-preserving migration #7
Loading…
Reference in a new issue
No description provided.
Delete branch "security/otc-pause-guardian-publication"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds emergency pause controls for new OTC swaps. The existing owner or a distinct pause-only guardian can pause; only the owner can resume or manage the guardian. Existing price/configuration, CW20 accounting, quotes and owner recovery remain available.
Pause state uses a separate storage Item. The v0.2.0 pause upgrade preserves existing config, totals and unrelated bytes; the specialized v0.1.0 USDC-to-USDT migration retains its original wire shape and checks. Paused CW20 Send transactions revert atomically without payment or accounting changes.
Validation: eight focused pause/role/storage/refund checks and nine migration checks passed locally; schema export and formatting checks passed. Independent source review approved the contract/test implementation, and a separate documentation review confirmed this publication content. CI was not run for this draft; no CI PASS is claimed.
Deployment is outside this change. Actual contract code, admin and owner/guardian identities require separate verification. No automatic resume is added.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.