Problem
The parameters contract requires a minimum guarantee
of 20% of the loan amount. But create_loan() never
actually verifies or locks this guarantee deposit.
What To Build
- Verify guarantee in create_loan()
- Add guarantee_amount to Loan struct
- Return guarantee on repayment
- Forward guarantee to pool on default
Files To Touch
- contracts/creditline-contract/src/lib.rs
- contracts/creditline-contract/src/types.rs
- contracts/creditline-contract/src/tests.rs
Acceptance Criteria
Mandatory Checks Before PR
Problem
The parameters contract requires a minimum guarantee
of 20% of the loan amount. But create_loan() never
actually verifies or locks this guarantee deposit.
What To Build
Files To Touch
Acceptance Criteria
Mandatory Checks Before PR