๐ Target Component
contracts/lending-contract/src/lib.rs
๐ Description
Borrowers cannot add additional collateral to an existing loan position to lower LTV and avoid imminent liquidation.
๐ Implementation Requirements
- Add
deposit_additional_collateral(env: Env, loan_id: u64, amount: i128) function.
- Recalculate health factor and emit
collateral_added event.
๐ฏ Testnet Goal
Borrower risk management tools on testnet lending protocol.
๐ Target Component
contracts/lending-contract/src/lib.rs๐ Description
Borrowers cannot add additional collateral to an existing loan position to lower LTV and avoid imminent liquidation.
๐ Implementation Requirements
deposit_additional_collateral(env: Env, loan_id: u64, amount: i128)function.collateral_addedevent.๐ฏ Testnet Goal
Borrower risk management tools on testnet lending protocol.