yearn / yearn-api-archived

Collection of serverless API
23 stars 24 forks source link

Issue 8: Vault and Strategy Holdings #30

Closed miguel567 closed 3 years ago

miguel567 commented 3 years ago

Issue: https://github.com/iearn-finance/yearn-api/issues/8

I'm following the approach from dudesahn as defined here: hackmd.io/@dudesahn/BkxKfTzqw TODO: We believe we are missing to calculate the pool balance of yWBTC token. This is the pre-requirement for calculating TVL (my next step).

miguel567 commented 3 years ago

I'm breaking APY/SAVE. need to fix it first.

miguel567 commented 3 years ago

fixed the APY save endpoint which was broken before and removed ethereum-blocks-by-date.js file as this is not needed.

miguel567 commented 3 years ago

I've reviewed your feedback @graham-u and @x48-crypto from the previous push, please check it above.

Also I've added to this push:

FYI: I'm following Dudesahn's documented holdings calculation guide: https://hackmd.io/@dudesahn/BkxKfTzqw