Skip to content

Add withdrawal race-condition and lock-state test matrix #258

@Baskarayelu

Description

@Baskarayelu

Description

Create a full lock-state and timing matrix for withdrawals to ensure no bypass of locked goals.

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review
  • Cover locked, unlocked, timelocked, and unauthorized paths

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b test/savings-withdraw-lock-matrix
  • 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

test: add withdrawal lock-state and timing matrix

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 labelcontractsRemitWise contracts labellockingRemitWise contracts labelpriority:highRemitWise contracts labelqualityRemitWise contracts labeltype:testRemitWise contracts label

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions