Skip to content

Contract: Implement Loan Collateral Top-Up Function in Lending Contractย #1165

Description

@ONEONUORA

๐Ÿ“Œ 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

  1. Add deposit_additional_collateral(env: Env, loan_id: u64, amount: i128) function.
  2. Recalculate health factor and emit collateral_added event.

๐ŸŽฏ Testnet Goal

Borrower risk management tools on testnet lending protocol.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions