Open jstashh opened 2 years ago
Add a getHarvests function to StrategiesInterface that returns data about the harvests of a strategy, optionally within a specified window of blocks
getHarvests
StrategiesInterface
Data returned about each Harvest:
export interface HarvestData { transactionId: string; gain: BigNumber; gainUsdc: BigNumber; loss: BigNumber; time: Date; estimatedTotalAssets: BigNumber; apr: number; }
Adding more functionality to the SDK for rendering data about vaults/strategies.
added unit tests
Description
Add a
getHarvests
function toStrategiesInterface
that returns data about the harvests of a strategy, optionally within a specified window of blocksData returned about each Harvest:
Motivation and Context
Adding more functionality to the SDK for rendering data about vaults/strategies.
How Has This Been Tested?
added unit tests