Description
Validate the 4 plus win path and confirm the 10x multiplier is applied correctly at the cap.
Motivation
Tests are the primary safety net for the Tossd contract. Without coverage for this area, regressions can go undetected and break game fairness or fund safety guarantees.
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/integration-max-streak:
- Write capped-streak integration test
- Verify repeated wins use the 10x multiplier
- Document multiplier cap behavior
Technical Implementation
Files to modify:
coinflip-contract/src/lib.rs
Implementation steps:
- Write capped-streak integration test
- Verify repeated wins use the 10x multiplier
- Document multiplier cap behavior
Branch: feature/integration-max-streak
Example commit message
test: add integration coverage for maximum streak scenario
Acceptance Criteria
Guidelines
- Assignment required before starting
- PR description must include:
Closes #154
Description
Validate the 4 plus win path and confirm the 10x multiplier is applied correctly at the cap.
Motivation
Tests are the primary safety net for the Tossd contract. Without coverage for this area, regressions can go undetected and break game fairness or fund safety guarantees.
Requirements and context
Tossd-contract/src/lib.rsProposed Solution
Complete the following in a focused PR off
feature/integration-max-streak:Technical Implementation
Files to modify:
coinflip-contract/src/lib.rsImplementation steps:
Branch:
feature/integration-max-streakExample commit message
Acceptance Criteria
Guidelines
Closes #154