calculateAccountDebt
calculateAccountDebt(
params):bigint
Defined in: packages/synapse-core/src/pay/account-debt.ts:17
Compute account debt — the unsettled lockup amount exceeding available funds.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
params | ParamsType | Raw account fields + current epoch |
Returns
Section titled “Returns”bigint
The debt amount (0n if account is healthy)