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

Upgrade AAVE to 3.0.0 Schema #1519

Closed
8 of 9 tasks
bye43 opened this issue Dec 14, 2022 · 16 comments · Fixed by #1993
Closed
8 of 9 tasks

Upgrade AAVE to 3.0.0 Schema #1519

bye43 opened this issue Dec 14, 2022 · 16 comments · Fixed by #1993
Assignees
Labels
p0 high priority

Comments

@bye43
Copy link
Contributor

bye43 commented Dec 14, 2022

Issues to address when we do this:

Tasks

@bye43 bye43 added the backlog Issue is in the backlog label Dec 14, 2022
@melotik
Copy link
Contributor

melotik commented Feb 23, 2023

Will also allow us to get aave flashloan data

@melotik
Copy link
Contributor

melotik commented Mar 31, 2023

Another note: aave v3 and forks can be refactored to be simpler (see spark lend). We might as well do that change in this PR as well

@ishraq8
Copy link
Contributor

ishraq8 commented Mar 31, 2023

@dmelotik just to confirm, this will not effect endpoints for protocol metrics right?

@melotik
Copy link
Contributor

melotik commented Mar 31, 2023

Good point @ishraq8. We need to discuss how we can go about this from a consumption standpoint.

To answer the question, this affects endpoints. The upgrade creates breaking changes on the endpoint. But, our service already supports the schema we will be moving to in this issue.

The question is, what work needs to be done in order to support this update, if any?

Edit: The only thing we need to worry about is not changing any of the IDs (case sensitive). They should all be lowercase now, so this should not be an issue

@tnkrxyz
Copy link
Collaborator

tnkrxyz commented Apr 25, 2023

I am almost done with the refactoring. @dmelotik , @bye43 , one quesiton for you is whether the upgraded subgraphs need to be QAed? Since the upgrade/refactoring adds new logics and changes existing logic (transfers), I feel more comfortable if any protocol specialist can help take a look.

@ishraq8
Copy link
Contributor

ishraq8 commented Apr 25, 2023

@tnkrxyz happy to take a look for QA, I think it is best practice to QA these refactoring. Give me a heads up when they are ready.

@melotik
Copy link
Contributor

melotik commented Apr 25, 2023

@ishraq8 the only thing that should change is the aave v3 positions since we are now splitting them on the borrow side between stable and variable borrows.

And all of the new fields/entities from the new schema, so we should make sure they make sense, but the tvl, revenue, usage, on the protocol/pools should be exactly the same

@tnkrxyz
Copy link
Collaborator

tnkrxyz commented Apr 26, 2023

@tnkrxyz happy to take a look for QA, I think it is best practice to QA these refactoring. Give me a heads up when they are ready.

@ishraq8 I made some final changes and re-deployed the subgraphs. Unfortunately, some of subgraphs will take a long time to sync (aave-v2/v3-polygon etc). I will let you know once it is fully synced.

@ishraq8
Copy link
Contributor

ishraq8 commented Apr 26, 2023

@ishraq8 the only thing that should change is the aave v3 positions since we are now splitting them on the borrow side between stable and variable borrows.

And all of the new fields/entities from the new schema, so we should make sure they make sense, but the tvl, revenue, usage, on the protocol/pools should be exactly the same

Good to note, i figured it could be a quick look for a set of eyes.

@ishraq8
Copy link
Contributor

ishraq8 commented Apr 28, 2023

@tnkrxyz @dmelotik went through the positional data on the v3.0.1 schemas and they are accurate compared to what is on the explorer. Positional data is accurate and depends on code review.

@tnkrxyz
Copy link
Collaborator

tnkrxyz commented Apr 28, 2023

@tnkrxyz @dmelotik went through the positional data on the v3.0.1 schemas and they are accurate compared to what is on the explorer. Positional data is accurate and depends on code review.

@ishraq8 , great, thx! There are a few subgraphs that are still syncing (e.g. aave-v2-polygon, aave-v3-optimism) and will take a long time before they are fully synced. I also fixed a deployment error for aave-v2-ethereum and radiant-arbitrum. See #1993 (comment) for a complete list of subgraphs.

@melotik
Copy link
Contributor

melotik commented May 2, 2023

@ishraq8 can you also take a look at revenue detail in markets. The new field should separate flashloan and liquidation revenue out. Can you also verify rewards have not changed, there is some new logic

@ishraq8
Copy link
Contributor

ishraq8 commented May 9, 2023

looks like revenuedetail is working. this should be good to go from QA side

@melotik
Copy link
Contributor

melotik commented May 10, 2023

tnkrxyz is still working on an issue from the revenue on aave v3 eth

@bye43
Copy link
Contributor Author

bye43 commented May 22, 2023

@ishraq8 There is a negative revenue issue that @dmelotik has been seeing in some of the markets at the beginning of their initialization, so they might need a re-QA when the fix for that goes through

@ishraq8
Copy link
Contributor

ishraq8 commented May 22, 2023

will do, thanks for heads up :)

@bye43 bye43 added the p0 high priority label Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p0 high priority
Projects
Status: Backfill
Development

Successfully merging a pull request may close this issue.

5 participants