WIP: [CI SKIP] Pause-only guardian for OTC intake #5

Draft
PlasticDigits wants to merge 2 commits from security/otc-pause-guardian into main
Owner

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.

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.
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'security/otc-pause-guardian:security/otc-pause-guardian'
git switch 'security/otc-pause-guardian'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code/cl8y-otc-bsc!5
No description provided.