WIP: Add zero-only matching allowance revocation [CI SKIP] #5

Draft
PlasticDigits wants to merge 1 commit from security/emergency-matching-revoke into main
Owner

The existing matching vault can revoke allowances only through its owner, who also controls withdrawals. This adds an optional new-vault variant whose separate immutable revoker can only zero the fixed matching allowance and must observe zero before reporting success.

Corrects pause and initial-approval comments and documents repayment, NFT and migration limitations. A funded matching deposit rolls back after revocation; this is not a graceful unmatched-deposit mode. Existing deployed contracts are unchanged.

Validation: eight focused offline emergency tests pass, including custody denial, zero postcondition, token failure and atomic deposit rollback. Independently reviewed. No deployment, migration, transaction or production enrollment is performed by this PR.

The existing matching vault can revoke allowances only through its owner, who also controls withdrawals. This adds an optional new-vault variant whose separate immutable revoker can only zero the fixed matching allowance and must observe zero before reporting success. Corrects pause and initial-approval comments and documents repayment, NFT and migration limitations. A funded matching deposit rolls back after revocation; this is not a graceful unmatched-deposit mode. Existing deployed contracts are unchanged. Validation: eight focused offline emergency tests pass, including custody denial, zero postcondition, token failure and atomic deposit rollback. Independently reviewed. No deployment, migration, transaction or production enrollment is performed by this PR.
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/emergency-matching-revoke:security/emergency-matching-revoke'
git switch 'security/emergency-matching-revoke'
Sign in to join this conversation.
No reviewers
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-aidevclusterfund!5
No description provided.