Skip to main content

Function: resolveCreditDispute()

resolveCreditDispute(store, input): Promise<{ receivableMicro: number; status: "not_found" | "resolved" | "already_resolved"; }>

Defined in: packages/agentos/src/safety/runtime/CompoundCreditLedger.ts:567

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​

at​

number

disputeId​

string

lotId​

string

outcome​

"won" | "lost"

reversedMicro​

number

scopeId​

string

Returns​

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