Skip to main content

getMaxWithdrawAmount

Description:

How much a user can withdraw. Use this method if the user has mintedAssets, if minted balance is null then maxWithdraw will be equal to stakedAssests.

Arguments:

NameTypeRequiredInfo
vaultAddressstringYesThe address of the vault
userAddressstringYesThe address of the user

Returns:

type Output = bigint

Example:

await sdk.vault.getMaxWithdrawAmount({
vaultAddress: '0x...',
userAddress: '0x...',
})