Skip to content

fix(lending): add overdue loan liquidation path - #5

Merged
Tobore2000 merged 3 commits into
devfrom
fix/ac-026-lending-liquidation
Sep 24, 2026
Merged

Tobore2000 merged 3 commits into
devfrom
fix/ac-026-lending-liquidation

Conversation

@Tobore2000

Copy link
Copy Markdown
Owner

AC-026

Summary

  • add lender-authorized liquidate(lender, borrower, loan_id) for loans past repayment deadline
  • mark written-off loans as LoanStatus::Defaulted and emit a default event
  • update lender balance, borrowed principal, active-loan liquidity, and total lender balance consistently
  • replace the placeholder default test and update lending documentation

Validation

  • git diff --check passed
  • cargo test -p acbu_lending_pool test_loan_default_scenario is blocked in the local Windows environment because the MSVC link.exe linker is not installed

@Tobore2000
Tobore2000 merged commit cad81e5 into dev Sep 24, 2026
4 of 8 checks passed
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.

1 participant