getBurnAmountForUnstake
Description:
This method returns the amount of osToken that must be burned to enable unstaking of all underlying tokens.
Arguments:
| Name | Type | Required | Description |
|---|---|---|---|
| vaultAddress | string | Yes | The address of the vault |
| userAddress | string | Yes | The user address |
Returns:
type Output = bigint
Example:
sdk.osToken.getBurnAmountForUnstake({
userAddress: '0x...',
vaultAddress: '0x...',
})