WIP: Add zero-only matching allowance revocation [CI SKIP] #5
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/cl8y-aidevclusterfund!5
Loading…
Reference in a new issue
No description provided.
Delete branch "security/emergency-matching-revoke"
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?
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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.