yearn / yearn-vaults-v2-subgraph

26 stars 41 forks source link

feat: add balanceShares to AccountVaultPositionUpdate #69

Closed jstashh closed 3 years ago

jstashh commented 3 years ago

This is to be able to calculate historical earnings for a user. Can't use balancePosition for this as the pricePerShare (from VaultUpdates) of the vault changes over time, whereas balancePosition is static at one point in time.