Summary
If an invoice's funding deadline passes without reaching the target, all investors should be refunded their full deposit amount. Unit tests should confirm each investor receives exactly their deposited amount back and the escrow is marked as refunded.
Scope
- Test a single investor refund returns the exact deposited amount
- Test three investors each receive their individual deposit amounts (not a pro-rata split)
- Test calling refund before the deadline panics with
deadline_not_passed
- Test calling refund after already refunding panics with
escrow_already_refunded
- Assert escrow status is
refunded after successful refund
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
If an invoice's funding deadline passes without reaching the target, all investors should be refunded their full deposit amount. Unit tests should confirm each investor receives exactly their deposited amount back and the escrow is marked as
refunded.Scope
deadline_not_passedescrow_already_refundedrefundedafter successful refundAcceptance Criteria
deadline_not_passedescrow_already_refundedrefundedafter successful callETA: 12 hours
Coordinate on Telegram