API ReferenceVaults, collateral, and riskFunction
getRequiredCollateralForStaticLOC()
function getRequiredCollateralForStaticLOC(ctx, params): Promise<bigint>;Calculates the minimum collateral required for a static LOC with the provided GetRequiredCollateralForStaticLOCParams. Note: this will largely depend on the withdrawal fee within the CollateralVault contract.
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | SDKContext | The SDK context. |
params | GetRequiredCollateralForStaticLOCParams | The parameters for collateral calculation. |
Returns
Promise<bigint>
The required collateral.