Skip to main content

getConfig

Description:

Deprecated, use const { osTokenConfig } = await sdk.vault.getVault() instead. Returns basic information on the token

Arguments:

NameTypeRequiredDescription
vaultAddressstringYesThe address of the vault

Returns:

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

Example:

await sdk.osToken.getConfig({ vaultAddress: '0x...' })