Closed bsamuels453 closed 2 years ago
Add the following fields to the Vault entity:
Add the following fields to the Strategy entity
These should be added to Strategy entity as well, but are sourced from Strategy events:
function isActive() public view returns (bool) { return vault.strategies(address(this)).debtRatio > 0 || estimatedTotalAssets() > 0; }
These fields will be used in yearn-watch: https://github.com/Major-Eth/yearn-watch/blob/main/pages/api/getVaults.tsx#L192
i'll give this a go
https://github.com/bsamuels453/yearn-vaults-v2-subgraph/pull/8
Add the following fields to the Vault entity:
Add the following fields to the Strategy entity
These should be added to Strategy entity as well, but are sourced from Strategy events:
These fields will be used in yearn-watch: https://github.com/Major-Eth/yearn-watch/blob/main/pages/api/getVaults.tsx#L192