Skip to content
This repository has been archived by the owner on Oct 8, 2022. It is now read-only.

SDK support to return the underlying vault's current apy #21

Open
jrhea opened this issue Jun 25, 2021 · 0 comments
Open

SDK support to return the underlying vault's current apy #21

jrhea opened this issue Jun 25, 2021 · 0 comments

Comments

@jrhea
Copy link
Contributor

jrhea commented Jun 25, 2021

The endpoint used for Yearn vaults is:

https://api.yearn.finance/v1/chains/1/vaults/all

It would be nice to have a method that accepts, for example, the token symbol (PT or YT) and returns the vault APY. Something like:

getVaultAPYByTokenSymbol(termAddresses, tokenSymbol)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant