Skip to main content

getVaultStats

Description:

Getting the vault stats collection. With the help of this data it is possible to build a chart.

Arguments:

NameTypeRequiredDescription
daysCountnumberYesThe limit in days
vaultAddressstringYesThe address of the vault

Returns:

type Output = {
apy: number
time: number
balance: number
rewards: number
}
NameDescription
timeDate and time for each data point
apyCurrent APY based on time, rewards and balance.
rewardsNumber of assets earned by the vault during the interval in ETH
balanceTotal assets in the vault at the moment of time in ETH

Example:

await sdk.vault.getVaultStats({
daysCount: 30,
vaultAddress: '0x...',
})