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
| Parameter | Type | Description |
|---|---|---|
ctx | SDKContext | The SDK context. |
params | GetCollateralFactorParams | The collateral/credited token pair to look up. |
Returns
Promise<CollateralFactor | undefined>
The collateral factor, or undefined if not found.