Skip to main content

getMaxMint

Description:

Maximum number of shares for minting

Arguments:

NameTypeRequiredDescription
vaultAddressstringYesThe address of the vault
ltvPercentbigintYessdk.vault.getVault
stakedAssetsbigintYessdk.vault.getStakeBalance
mintedAssetsbigintYessdk.osToken.getPosition

Returns:

type Output = bigint

Example:

await sdk.osToken.getMaxMint({
ltvPercent: 0n,
mintedAssets: 0n,
stakedAssets: 0n,
vaultAddress: '0x...',
})