Skip to content

[Contracts] Add lending/borrowing contract with interest rates#443

Open
Gezziy wants to merge 4 commits into
benelabs:mainfrom
Gezziy:build-lending
Open

[Contracts] Add lending/borrowing contract with interest rates#443
Gezziy wants to merge 4 commits into
benelabs:mainfrom
Gezziy:build-lending

Conversation

@Gezziy
Copy link
Copy Markdown

@Gezziy Gezziy commented Jun 1, 2026

closes #396
Summary
This PR adds a new Soroban lending/borrowing contract under examples/lending.

Changes include:

Single-reserve lending pool implementation.
Deposit and withdrawal support for liquidity providers.
Collateral deposit and withdrawal flows.
Borrow and repay functionality.
Utilization-based interest accrual.
Scaled balance accounting with supply and borrow indexes.
Collateral health checks and pool liquidity checks.
Focused tests for lending, borrowing, repayment, interest accrual, and validation.
Reason
This implements the MVP-critical lending/borrowing contract feature requested in issue #396, enabling users to supply assets, borrow against collateral, and accrue interest over time.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@Gezziy Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Contracts] Build Lending/Borrowing contract with interest rates

2 participants