Skip to content

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

ParameterTypeDescription
ctxSDKContextThe SDK context.
paramsGetVaultCollateralizableAllowanceParamsThe request-specific parameters.

Returns

Promise<bigint>

The allowance.