Skip to main content

getData

Description:

Get boost data for vault user

Arguments:

NameTypeRequiredDescription
userAddressstringYesThe user address
vaultAddressstringYesThe address of the vault

Returns:

type LeverageStrategyData = {
version: number
isUpgradeRequired: boolean
}

type Output = {
shares: bigint
vaultApy: number
totalShares: bigint
rewardAssets: bigint
borrowStatus: BorrowStatus
maxMintShares: bigint
borrowedAssets: bigint
exitingPercent: number
allocatorMaxBoostApy: number
osTokenHolderMaxBoostApy: number
leverageStrategyData: LeverageStrategyData
}
NameDescription
sharesTokens count of boost
totalSharesTokens count of boost + reward assets converted to shares
vaultApyBase vault apy
maxMintSharesMaximum possible number of osToken without deductions
exitingPercentThe percent (in wad) of user's position that is currently exiting
rewardAssetsUser boost rewards
borrowStatusAave borrow status. enum BorrowStatus (Healthy, Moderate, Risky)
borrowedAssetsAmount of borrowed ETH
allocatorMaxBoostApyThe average max boost APY earned in this vault by the allocator
osTokenHolderMaxBoostApyThe average max boost APY earned in this vault by the osToken holder
leverageStrategyData.versionThe version of the leverage strategy contract
leverageStrategyData.isUpgradeRequiredThe upgrade status of the leverage strategy contract

Example:

await sdk.boost.getData({
userAddress: '0x...',
vaultAddress: '0x...',
})