Component: Contracts (Borrowing) | Effort: 3-4 days | Priority: MEDIUM
Current State
Loans have fixed terms with no modification options.
Missing Functions
Loan modification functions:
extend_loan() - Extend loan due date
increase_loan_amount() - Borrow more against same collateral
modify_loan_terms() - Change interest rate or terms
get_extension_fee() - Calculate extension fee
get_max_additional_borrow() - Calculate max additional borrow
Why This Matters
- Flexibility: Borrowers need time extensions
- Growth: Increase loan as collateral appreciates
- User retention: Avoid forcing loan closure
- Revenue: Extension fees generate income
Tasks
Acceptance Criteria
- Loans can be extended with fee
- Additional borrowing works correctly
- Health factor validated on increases
- Extension limits enforced
- Tests cover modification scenarios
- Documentation complete
Component: Contracts (Borrowing) | Effort: 3-4 days | Priority: MEDIUM
Current State
Loans have fixed terms with no modification options.
Missing Functions
Loan modification functions:
extend_loan()- Extend loan due dateincrease_loan_amount()- Borrow more against same collateralmodify_loan_terms()- Change interest rate or termsget_extension_fee()- Calculate extension feeget_max_additional_borrow()- Calculate max additional borrowWhy This Matters
Tasks
extend_loan()functionincrease_loan_amount()functionget_extension_fee()calculationget_max_additional_borrow()viewAcceptance Criteria