Skip to content

API ReferenceLOC lifecycleInterface

LetterOfCreditConversion

Lossless outcome of conversion, including any observed full-conversion shortfall. Amounts retain their source token.

Properties

collateralAmountConverted

collateralAmountConverted: bigint;

Collateral traded, excluding the liquidator fee, in source-token smallest units.


creditedAmountReceived

creditedAmountReceived: bigint;

Credit actually received, in credited-token smallest units.


creditedAmountRequired

creditedAmountRequired: bigint;

Credit this liquidation sought to cover, in credited-token smallest units.


creditedToken

creditedToken: `0x${string}`;

Token of the required and received credit amounts and the shortfall.


extent

extent: 'partial' | 'full';

Partial liquidation accompanies redemption; full conversion replaces reserved backing.


initiator

initiator: LetterOfCreditActor;

Actor that initiated this liquidation, with its evidence source.


liquidator

liquidator: LetterOfCreditActor;

Actor performing the liquidation, with its evidence source.


liquidatorFeeAmount

liquidatorFeeAmount: bigint;

Liquidator compensation in source-token smallest units.


shortfall

shortfall: bigint;

Zero for partial liquidation; max(required - received, 0) for full conversion.


sourceToken

sourceToken: `0x${string}`;

Collateral token traded and used to pay the liquidator fee.