Skip to content

API ReferenceVaults, collateral, and riskFunction

getVaultWithdrawalFeeBasisPoints()

function getVaultWithdrawalFeeBasisPoints(ctx, params?): Promise<number>;

Fetches the current withdrawal fee for the selected compatible CollateralVault.

Parameters

ParameterTypeDescription
ctxSDKContextThe SDK context.
paramsGetVaultWithdrawalFeeBasisPointsParamsOptional vault selector; omitted means the profile’s current vault.

Returns

Promise<number>

The withdrawal fee in basis points (i.e. 200 = 2%).