yearn / yearn-vaults-v2-subgraph

26 stars 41 forks source link

fix: add shares when transfer received rather than always subtracting them #76

Closed jstashh closed 3 years ago

jstashh commented 3 years ago

Fixes https://github.com/yearn/yearn-vaults-v2-subgraph/issues/66

We were always subtracting shares from the account position when a transfer happened, instead we should add them to the account position if the transfer is being received.

Also adding a couple of generated files that I didn't commit previously

Deployed here: https://thegraph.com/explorer/subgraph/jstashh/yearn-subgraph-five