Description
Validate that no unauthorized actor can extract funds from reserves through public contract functions.
Motivation
This issue is required to complete the Tossd contract implementation and ensure the system behaves correctly under all conditions.
Requirements and context
- Must be secure, tested, and documented
- Should be efficient and easy to review
- Primary files:
Tossd-contract/src/lib.rs
Proposed Solution
Complete the following in a focused PR off feature/unauthorized-withdrawal-tests:
- Write adversarial tests for unauthorized withdrawals
- Cover admin and non-admin callers
- Document fund safety assumptions
Technical Implementation
Files to modify:
coinflip-contract/src/lib.rs
Implementation steps:
- Write adversarial tests for unauthorized withdrawals
- Cover admin and non-admin callers
- Document fund safety assumptions
Branch: feature/unauthorized-withdrawal-tests
Example commit message
test: add unauthorized withdrawal prevention coverage
Acceptance Criteria
Guidelines
- Assignment required before starting
- PR description must include:
Closes #150
Description
Validate that no unauthorized actor can extract funds from reserves through public contract functions.
Motivation
This issue is required to complete the Tossd contract implementation and ensure the system behaves correctly under all conditions.
Requirements and context
Tossd-contract/src/lib.rsProposed Solution
Complete the following in a focused PR off
feature/unauthorized-withdrawal-tests:Technical Implementation
Files to modify:
coinflip-contract/src/lib.rsImplementation steps:
Branch:
feature/unauthorized-withdrawal-testsExample commit message
Acceptance Criteria
Guidelines
Closes #150