Skip to content

[SUBGRAPH] fix gda deposit accounting, fixes #2155#2156

Open
d10r wants to merge 4 commits intodevfrom
2026-03-subgraph_gda_deposit
Open

[SUBGRAPH] fix gda deposit accounting, fixes #2155#2156
d10r wants to merge 4 commits intodevfrom
2026-03-subgraph_gda_deposit

Conversation

@d10r
Copy link
Copy Markdown
Collaborator

@d10r d10r commented Mar 19, 2026

fixes #2155

@d10r d10r marked this pull request as ready for review March 19, 2026 17:59
Copy link
Copy Markdown
Contributor

@kasparkallas kasparkallas left a comment

Choose a reason for hiding this comment

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

Please update the Changelog.

Maybe leave a comment in updateTokenStatisticStreamData that the GDA deposit is handled elsewhere because of the split of events?

Code-wise, accountTokenSnapshot.totalDeposit = accountTokenSnapshot.totalCFADeposit.plus(accountTokenSnapshot.totalGDADeposit) would look a bit more readable, but it doesn't add any functional value and makes testing with the mocks a bit harder.

Other than that, LGTM

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.

[SUBGRAPH] AccountTokenSnapshot totalGDADeposit is 0 when account has nonzero GDA buffer

3 participants