Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Add ySUSD pool to holdings endpoint and restructure poolBalanceUSD, restructure TVL to expose earnHoldings, vaultHoldings, StrategyHoldings. Include mUSD and SUSD vaults #47

Open
miguel567 opened this issue Dec 19, 2020 · 1 comment

Comments

@miguel567
Copy link
Collaborator

miguel567 commented Dec 19, 2020

ySUSD earn pool: https://etherscan.io/address/0xF61718057901F84C4eEC4339EF8f0D86D2B45600

earnHoldings:

  • create a earnHoldings object which contains the pools, with name and address.
  • remove the poolBalanceUSD key and move the items to earnHoldings.

update TVL endpoint so it adds up correctly earnHolding pieces.

expose the earnHoldings, vaultHoldings and strategyHoldings keys in the TVL endpoint

  • avoid breaking the TvlUSD key.

include mUSD and ySUSD vaults

update type in calculation key.

@miguel567 miguel567 changed the title Add ySUSD pool to holdings endpoint Add ySUSD pool to holdings endpoint and restructure poolBalanceUSD, restructure TVL to expose earnHoldings, vaultHoldings, StrategyHoldings. Include mUSD and SUSD vaults Dec 19, 2020
@miguel567
Copy link
Collaborator Author

Going to add a type key in the holdings endpoint to differentiate the products.
type: 'earn' is the earn product.
type: 'vault' is V1 and V2(when they are added) vaults.

with these then I can iterate over all type === 'earn' and get the earnHoldings total easily.

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