Function resolveCreditDispute

  • Resolves a dispute. Won: the lot is active again, and the account admits holds once no dispute is open. Lost: the reversal takes what it can from the lot's free balance (retired), and the rest is recorded as a receivable outside spendable credit, never subtracted from a hold or made a negative balance; the lot closes.

    Parameters

    • store: ICompoundCreditStore
    • input: {
          scopeId: string;
          lotId: string;
          disputeId: string;
          outcome: "won" | "lost";
          reversedMicro: number;
          at: number;
      }
      • scopeId: string
      • lotId: string
      • disputeId: string
      • outcome: "won" | "lost"
      • reversedMicro: number
      • at: number

    Returns Promise<{
        status: "resolved" | "already_resolved" | "not_found";
        receivableMicro: number;
    }>