Skip to content

Collateralized Lending Contract #255

Description

@Mkalbani

Location: contracts/collateral_lending
Language: Rust (Soroban)
Estimated Time: 8 hours
Difficulty: Hard

Description

Implement a lending protocol with collateral requirements, interest rates, and liquidation mechanics.

Tasks

  • Design lending pool structure
  • Implement collateral deposit
  • Create loan issuance
  • Add interest calculation
  • Implement liquidation logic
  • Create loan status tracking
  • Add health factor calculation
  • Write comprehensive tests
  • Implement oracle integration
  • Add loan repayment

Acceptance Criteria

  • Collateral requirements enforced
  • Interest calculated correctly
  • Loans issued with terms
  • Liquidations triggered at threshold
  • Health factors accurate
  • All tests pass

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions