Summary
The escrow deposit function should enforce a minimum investment amount to prevent dust deposits that waste ledger entries. Unit tests should confirm deposits below the minimum panic and deposits at or above the minimum succeed.
Scope
- Test a deposit of exactly the minimum amount succeeds and is recorded in escrow state
- Test a deposit of minimum - 1 stroop panics with
amount_below_minimum
- Test a deposit of 0 panics with
zero_amount
- Test a deposit well above the minimum succeeds
- Assert escrow state unchanged after any panic
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The escrow deposit function should enforce a minimum investment amount to prevent dust deposits that waste ledger entries. Unit tests should confirm deposits below the minimum panic and deposits at or above the minimum succeed.
Scope
amount_below_minimumzero_amountAcceptance Criteria
amount_below_minimumzero_amountETA: 12 hours
Coordinate on Telegram