This repository was archived by the owner on Dec 2, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
This repository was archived by the owner on Dec 2, 2025. It is now read-only.
Implement borrower loan tracking in contractΒ #12
Copy link
Copy link
Open
Labels
good first issueGood for newcomersGood for newcomersonlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week
Description
Feature Request β¨
π Title
Implement borrower loan tracking in contract
π Description
Implement functionality in the smart contract to track borrower loans, including amounts, terms, payments, interest, and loan status.
π‘ Proposed Solution
- Add data structures to track loans per borrower
- Implement functions to query loan history
- Track completed and pending payments
- Automatic calculation of interest and penalties
- Events to notify loan changes
- Query functions for frontend dashboard
π§ Motivation / Related Problem
To be able to display real data in the borrowers dashboard (UI), we need the contract to provide loan information in a structured and queryable way.
πΈ Visuals / References
Required contract functionalities:
getBorrowerLoans(address borrower)- Returns all loansgetBorrowerTotalDebt(address borrower)- Returns total debtgetBorrowerPaymentSchedule(address borrower)- Returns payment schedulegetBorrowerLoanHistory(address borrower)- Returns complete historycalculateInterest(uint256 loanId)- Calculates current interest- Events:
LoanTaken,PaymentMade,LoanDefaulted,InterestAccrued
π Additional Notes
- Priority: Feature (Contract Implementation)
- Component: Smart Contract, Backend
- Labels: enhancement, contract, borrower, tracking
- RELATED: Borrowers UI dashboard issue
- Implement notification system for upcoming payments
- Consider different loan types and terms
- Ensure data consistency with UI mockups
- Include functionality for partial and full payments
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomersonlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week