Skip to main content

getOsTokenConfig

Description:

Returns osToken collateral parameters for the specified vault: ltvPercent and liqThresholdPercent.

Arguments:

NameTypeRequiredDescription
vaultAddressstringYesThe address of the vault

Returns:

type Output = {
ltvPercent: bigint
liqThresholdPercent: bigint
}
NameDescription
ltvPercentThe percent used to calculate how much user can mint OsToken shares
liqThresholdPercentThe liquidation threshold percent used to calculate health factor for OsToken position

Example:

await sdk.utils.getOsTokenConfig({ vaultAddress: '0x...' })