WIP: [CI SKIP] Pause-only guardian for OTC intake #5
Loading…
Reference in a new issue
No description provided.
Delete branch "security/otc-pause-guardian"
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 current owner or a configured pause-only guardian can stop intake; only the owner can resume or set/revoke the guardian. Owner configuration and UUPS recovery remain available, and no withdrawal authority or rate/treasury change is introduced.
Pause state uses a separate ERC-7201 namespace. Existing linear slots 0–4, inheritance and pinned dependencies are preserved; compatible legacy proxies default to unpaused with no guardian, without reinitialization. Runtime enrollment must use a distinct guardian and verify actual owner/upgrade authority.
Validation: 15 focused local tests passed (8 roles/intake,3 proxy-upgrade/recovery,4 selected existing regressions); independent review reran11 role/upgrade tests successfully. Compiler storage layouts match and the existing staged secret scan passed.
CI was not run for this draft; no CI PASS is claimed. This source publication performs no chain transaction or migration. Live proxy/code/owner/upgrade authority and guardian enrollment remain unverified and require separate deployment evidence. No automatic resume is enabled.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.