feat: audit pause unpause access control - #318
Merged
Conversation
|
@Buchi-Einstein Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
…it-across-all-three-contracts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Audit pause/unpause access control across all three canonical contracts. Fix missing
require_not_pausedchecks, add missing event emissions, and add comprehensive test coverage.Audit Checklist
Invoice Contract (
COMEBACKHERE-contracts/contracts/invoice/src/lib.rs)initializecreate_invoicemark_paidscancel_invoicedrequest_refundrelease_escrowbatch_expireset_treasuryraise_disputepauseunpauseset_grace_windowTreasury Contract (
COMEBACKHERE-contracts/contracts/treasury/src/lib.rs)set_signerpropose_settlementapprove_settlementexecute_settlementupdate_thresholdraise_disputeresolve_disputedepositwithdrawadd_token_to_allowlistremove_token_from_allowlistpauseunpauseCompliance Contract (
COMEBACKHERE-contracts/contracts/compliance/src/lib.rs)allow_addressblock_addressallow_address_untilclear_addresstransfer_adminaccept_adminpauseunpauseChanges
check_not_pausedtoset_treasurycontract_paused/contract_unpausedevents topause/unpausecheck_not_pausedtoaccept_admin, convertedpause/unpauseto returnResultwith admin check and eventsSecurity
This is a security-sensitive change. Missing pause checks allowed state mutations while the contract was paused. Missing events made pause state changes untraceable on-chain.
Closes #184