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

feat: add weETHs invariant event indexing #169

Merged
merged 2 commits into from
Sep 10, 2024
Merged

Conversation

coreyar
Copy link
Collaborator

@coreyar coreyar commented Sep 3, 2024

Add weETHs invariant support to etherfi subgraph

@coreyar coreyar force-pushed the weeths-invariant-subgraph branch 3 times, most recently from 66fb45a to 248dedf Compare September 5, 2024 13:51
toAccount.effective_balance.plus(
amountUnderlying.toBigDecimal().div(exponentToBigDecimal(18)),
),
);
}
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: not needed anymore

Comment on lines +50 to +52
effective_balance: BigDecimal!
"Token Address"
token: Borrow!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see EtherFi expects the balance to be in tokens instead of mantissa, what about renaming type to token? Would the new schema affect queries?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line 52 is not referencing a value, It is referencing a relationship to make it easy to query all borrowers or suppliers.
line 51 is the name etherfi is expecting

@coreyar coreyar merged commit fed5b79 into develop Sep 10, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants