API ReferenceVaults, collateral, and riskFunction
getVaultWithdrawalFeeBasisPoints()
function getVaultWithdrawalFeeBasisPoints(ctx, params?): Promise<number>;Fetches the current withdrawal fee for the selected compatible CollateralVault.
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | SDKContext | The SDK context. |
params | GetVaultWithdrawalFeeBasisPointsParams | Optional vault selector; omitted means the profile’s current vault. |
Returns
Promise<number>
The withdrawal fee in basis points (i.e. 200 = 2%).