Skip to content

API ReferenceVaults, collateral, and riskFunction

getCollateralFactor()

function getCollateralFactor(ctx, params): Promise<CollateralFactor | undefined>;

Gets the CollateralFactor from the LetterOfCredit contract for the provided token pair.

Parameters

ParameterTypeDescription
ctxSDKContextThe SDK context.
paramsGetCollateralFactorParamsThe collateral/credited token pair to look up.

Returns

Promise<CollateralFactor | undefined>

The collateral factor, or undefined if not found.