Skip to content

Strengthen batch_add_to_goals partial failure semantics #261

@Baskarayelu

Description

@Baskarayelu

Description

Define and enforce clear atomicity rules for batch goal funding to avoid inconsistent partial updates.

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review
  • Clarify rollback vs partial success behavior with explicit events

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b feature/savings-batch-atomicity-rules
  • Implement changes
  • Write contract: savings_goals/src/lib.rs
  • Write comprehensive tests: savings_goals/src/test.rs, savings_goals/tests/stress_tests.rs
  • Add documentation: savings_goals/README.md
  • Include NatSpec-style comments
  • Validate security assumptions

Test and commit

  • Run tests: cargo test -p savings_goals
  • Cover edge cases
  • Include test output and security notes

Example commit message

feat: define atomicity semantics for batch_add_to_goals

Guidelines

  • Minimum 95 percent test coverage
  • Clear documentation
  • Timeframe: 96 hours

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programarea:savings-goalsRemitWise contracts labelbatchingRemitWise contracts labelcontractsRemitWise contracts labelpriority:highRemitWise contracts labeltestsRemitWise contracts labeltype:featureRemitWise contracts label

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions