Summary
The escrow should never accept deposits beyond the invoice face value. Unit tests should confirm that a deposit which would push the total above the face value is rejected, while a deposit that fits exactly within the remaining capacity succeeds.
Scope
- Test a deposit that fills the escrow to exactly the face value succeeds
- Test a deposit of 1 stroop above the remaining capacity panics with
capacity_exceeded
- Test two concurrent deposits that together exceed capacity — only one should succeed
- Assert total committed never exceeds face value after any sequence of deposits
- Assert escrow state unchanged after a capacity-exceeded panic
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The escrow should never accept deposits beyond the invoice face value. Unit tests should confirm that a deposit which would push the total above the face value is rejected, while a deposit that fits exactly within the remaining capacity succeeds.
Scope
capacity_exceededAcceptance Criteria
capacity_exceededETA: 12 hours
Coordinate on Telegram