Independence Note: Implement using a simple flag and sequence check in a mock test.
Context:
Even after a withdrawal is authorized (via multi-sig or admin), it should have a 24-hour mandatory "Timelock" window during which it can be cancelled by other members, preventing 'stealth' drains.
Objective:
Enforce a time delay for large treasury withdrawals.
Acceptance Criteria:
Technical Pointers:
- Timelocks are a fundamental security primitive in decentralized finance.
Independence Note: Implement using a simple flag and sequence check in a mock test.
Context:
Even after a withdrawal is authorized (via multi-sig or admin), it should have a 24-hour mandatory "Timelock" window during which it can be cancelled by other members, preventing 'stealth' drains.
Objective:
Enforce a time delay for large treasury withdrawals.
Acceptance Criteria:
earliest_execution_ledgersequence.execute_withdrawalfunction, assert that current sequence > earliest sequence.cancel_withdrawalmethod allowed for the first 24 hours only.Technical Pointers: