Telegram (ask questions / claim the issue here first): https://t.me/+DOylgFv1jyJlNzM0
Why this matters
Several user-reachable paths in loan_manager/src/lib.rs panic with strings rather than returning LoanError: repay does panic!("repayment amount below minimum"), set_min_repayment_amount panics on negative input, and adjust_total_outstanding does panic!("total outstanding underflow"). Panics produce untyped traps that clients cannot match on, unlike the existing structured LoanError enum used elsewhere.
Acceptance criteria
Files to touch
Out of scope
- Reworking the repayment split algorithm
- Changing min-repayment economics
Why this matters
Several user-reachable paths in loan_manager/src/lib.rs panic with strings rather than returning LoanError: repay does panic!("repayment amount below minimum"), set_min_repayment_amount panics on negative input, and adjust_total_outstanding does panic!("total outstanding underflow"). Panics produce untyped traps that clients cannot match on, unlike the existing structured LoanError enum used elsewhere.
Acceptance criteria
Files to touch
Out of scope