API ReferenceVaults, collateral, and riskFunction
getVaultCollateralizableAllowance()
function getVaultCollateralizableAllowance(ctx, params): Promise<bigint>;Fetches the current allowance in the CollateralVault for the provided collateralizable contract, token, and account.
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | SDKContext | The SDK context. |
params | GetVaultCollateralizableAllowanceParams | The request-specific parameters. |
Returns
Promise<bigint>
The allowance.