Skip to content

API ReferenceLOC lifecycleInterface

LetterOfCreditRiskAssessment

Current market assessment of an outstanding LOC, separate from observed historical insolvency.

Properties

collateralToCreditedPrice

collateralToCreditedPrice: TokenPairPrice | null;

Actual directional market input used, or null when health is notApplicable.


evaluatedAtTimestamp

evaluatedAtTimestamp: bigint;

Explicit Unix-second assessment clock, distinct from the price’s publication time.


health

health: 'notApplicable' | 'healthy' | 'unhealthy';

V3 dynamic-reserved health; static or fully converted backing is notApplicable. Missing dynamic inputs throw instead.


liquidationCoverage

liquidationCoverage:
| {
kind: "notApplicable";
}
| {
kind: "covered";
maximumCredited: TokenAmount;
}
| {
kind: "projectedShortfall";
maximumCredited: TokenAmount;
shortfall: TokenAmount;
};

Projected recovery after the liquidator incentive, in credited-token units; this does not record historical insolvency.


pairConfiguration

pairConfiguration: CollateralFactor | null;

Current V3 pair configuration used, or null when health is notApplicable; separate from creationContext.


reference

reference: LetterOfCreditReference;

The position this assessment describes; capabilities reject a mismatched reference or clock.


riskFactorBasisPoints

riskFactorBasisPoints: number | null;

Collateral factor relative to the liquidation threshold, capped at 10,000; null when health is notApplicable.