You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
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
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.
The text was updated successfully, but these errors were encountered:
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
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 freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ySUSD earn pool: https://etherscan.io/address/0xF61718057901F84C4eEC4339EF8f0D86D2B45600
earnHoldings:
update TVL endpoint so it adds up correctly earnHolding pieces.
expose the earnHoldings, vaultHoldings and strategyHoldings keys in the TVL endpoint
include mUSD and ySUSD vaults
update type in calculation key.
The text was updated successfully, but these errors were encountered: