Skip to content

Add Default State After Grace Period Expires #100

@mikewheeleer

Description

@mikewheeleer

Implement Default or Workout State Machine Branch

Description

Define behavior when invoice repayment is overdue beyond grace: transition to a default state, block SME withdrawal of new liquidity where appropriate, and enable documented recovery or refund paths.

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b feature/escrow-default-state-machine
  • Implement changes
  • Write contract: escrow/src/lib.rs
  • Write comprehensive tests: escrow/src/test.rs
  • Add documentation: README.md
  • Include Rust doc comments for default triggers and reversibility
  • Validate assumptions on fairness between SME and investors

Test and commit

  • Run tests
  • Cover edge cases
  • Include test output and security notes

Example commit message

feat(escrow): add default state after grace with documented recovery paths

Guidelines

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions