Telegram (ask questions / claim the issue here first): https://t.me/+DOylgFv1jyJlNzM0
Why this matters
loan_manager/src/lib.rs exposes get_loan, get_borrower_loans, and get_total_loans, but no view to list loans by status or fetch a lightweight status without triggering accrual via get_loan. Off-chain indexers and the frontend must call get_loan per id. A simple get_loan_status(loan_id) -> LoanStatus and/or pending-loans accessor would reduce calls and avoid the accrual side effect.
Acceptance criteria
Files to touch
Out of scope
- Global loan enumeration across all borrowers
- Indexer infrastructure
Why this matters
loan_manager/src/lib.rs exposes get_loan, get_borrower_loans, and get_total_loans, but no view to list loans by status or fetch a lightweight status without triggering accrual via get_loan. Off-chain indexers and the frontend must call get_loan per id. A simple get_loan_status(loan_id) -> LoanStatus and/or pending-loans accessor would reduce calls and avoid the accrual side effect.
Acceptance criteria
Files to touch
Out of scope