getMaxMint
Description:
Maximum number of shares for minting
Arguments:
Name | Type | Required | Description |
---|---|---|---|
vaultAddress | string | Yes | The address of the vault |
ltvPercent | bigint | Yes | sdk.vault.getVault |
stakedAssets | bigint | Yes | sdk.vault.getStakeBalance |
mintedAssets | bigint | Yes | sdk.osToken.getPosition |
Returns:
type Output = bigint
Example:
await sdk.osToken.getMaxMint({
ltvPercent: 0n,
mintedAssets: 0n,
stakedAssets: 0n,
vaultAddress: '0x...',
})