Problem
POST /loans/:id/repay exists but the service does not
build the actual unsigned XDR calling repay_installment()
on the creditline contract.
What To Build
- Implement buildRepaymentXdr() in loans.service.ts
- Add submitRepayment() in blockchain.service.ts
- Two-step flow: get unsigned XDR, then submit signed
Files To Touch
- src/modules/loans/loans.service.ts
- src/modules/loans/loans.controller.ts
- src/modules/blockchain/blockchain.service.ts
Acceptance Criteria
Mandatory Checks Before PR
Problem
POST /loans/:id/repay exists but the service does not
build the actual unsigned XDR calling repay_installment()
on the creditline contract.
What To Build
Files To Touch
Acceptance Criteria
Mandatory Checks Before PR