Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GIVfi Subgraph #872

Open
divine-comedian opened this issue May 1, 2023 · 2 comments
Open

GIVfi Subgraph #872

divine-comedian opened this issue May 1, 2023 · 2 comments
Assignees
Labels
GIVfi GIVfi related - development, design, research and deployment!

Comments

@divine-comedian
Copy link

divine-comedian commented May 1, 2023

We'll need to be able to relay indexed information from the GIVsavings contract to the dApp. We'll probably need a subgraph but I could be wrong.

Tagging @KurtMerbeth and @aminlatifi to keep you in the loop.

A vault (GIVsavings account) is defined by the chain it is on and it's underlying asset (ETH, DAI etc.... A vault only manages 1 asset/token
We will need to relay this information to users:

  • Current & Historical APYs of a given vault
  • Value of user's net deposits ( total balance - interest earned) for each vault
  • Value of user's yield earned (total balance - net deposits) since last withdrawal or vault inception
  • Historical information of user's withdrawals and deposits
@divine-comedian divine-comedian added the GIVfi GIVfi related - development, design, research and deployment! label May 1, 2023
@divine-comedian
Copy link
Author

Need to find a way to aggregate the user's total balance from all GIVsavings vaults on all chains to show the user their total balance in GIVsavings

@divine-comedian divine-comedian changed the title Relaying Information from GIVsavings contract to the dApp GIVfi Subgraph May 18, 2023
@divine-comedian
Copy link
Author

divine-comedian commented May 18, 2023

We will write a new subgraph service specifically for GIVfi - starting scope will be GIVsavings.

Test deployments should be up my mid next-week

@mateodaza has the contracts and will begin writing the subgraph files
should converse with @aminlatifi but we think it should be a separate file to reduce complexity of existing subgraph

test deployment will probably be optimism-goerli and production will be optimism mainnet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GIVfi GIVfi related - development, design, research and deployment!
Projects
None yet
Development

No branches or pull requests

2 participants