Telegram (ask questions / claim the issue here first): https://t.me/+DOylgFv1jyJlNzM0
Why this matters
request_loan in loan_manager/src/lib.rs validates and stores term_ledgers: term from the borrower, but approve_loan overwrites it with let term_ledgers = Self::read_default_term(&env); and sets loan.term_ledgers = term_ledgers / due_date = sequence + term_ledgers. The borrower's requested and validated term is discarded, and min/max term limits checked elsewhere never bind the actual approved term.
Acceptance criteria
Files to touch
Out of scope
- Adding variable-rate terms
- Refinance term semantics
Why this matters
request_loan in loan_manager/src/lib.rs validates and stores term_ledgers: term from the borrower, but approve_loan overwrites it with let term_ledgers = Self::read_default_term(&env); and sets loan.term_ledgers = term_ledgers / due_date = sequence + term_ledgers. The borrower's requested and validated term is discarded, and min/max term limits checked elsewhere never bind the actual approved term.
Acceptance criteria
Files to touch
Out of scope