-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program
Description
Description
Implement investment record creation on accept_bid, insurance coverage add (provider, coverage_percentage, premium), and query.
Requirements and context
- Must be secure, tested, and documented
- Only active investments can add insurance; investor auth
- Smart contracts only (Soroban/Rust)
Suggested execution
- Fork the repo and create a branch
git checkout -b feature/investment-insurance - Implement changes
- Implement:
src/investment.rs(Investment, InsuranceCoverage) - Add tests:
src/test_insurance.rs - Document in
docs/contracts/investment.md
- Implement:
- Test and commit
- Run
cargo test - Cover invalid coverage percentage, zero premium
- Include test output and security notes
- Run
Example commit message
feat: implement investment and insurance with tests and docs
Guidelines
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 96 hours
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program