Skip to content

feat(contracts,backend): add dispute/appeal mechanism for contested loan defaults #552

@ogazboiz

Description

@ogazboiz

Join our community: https://t.me/+DOylgFv1jyJlNzM0

Area: Contracts & Backend

When a loan is defaulted, the event is immutable. There is no way for a borrower to contest an incorrect default (e.g., caused by indexer lag or a clock-skew bug).

Fix: Add a contest_default(loan_id, reason) backend endpoint that:

  1. Moves loan to a disputed status
  2. Notifies admins for manual review
  3. Freezes further penalty accrual during dispute window
  4. Admin can either confirm or reverse the default

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendIssues related to backend developmentcontractsIssues related to smart contractscoreCore functionalityenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions