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

Update balance changes query #44

Merged
merged 3 commits into from
Sep 21, 2024
Merged

Update balance changes query #44

merged 3 commits into from
Sep 21, 2024

Conversation

fhenneke
Copy link
Contributor

@fhenneke fhenneke commented Sep 18, 2024

This PR changes two things about the balance changes query:

  1. MKR burn and mint events on Ethereum Mainnet are now handled correctly.
  2. Removes wrong special treatment of sDAI on Gnosis. Those events are always accompanied by all required transfer events. Adding additional transfers resulted in wrong balances. Those additional balance changes are removed now. Examples

It is easier to review the changes by looking at the three commits.

The query was tested by executing on the day range 2024-09-17--2024-09-19 and filtering on the following hashes:

  1. mint, burn
  2. deposit, withdraw

The new query (copy) adds one additional balance change in 1. and removes one balance change in 2.

This PR closes #41.

mints and burns do not emit transfer events. those are now added explicitly
sdai withdrawals and deposits already emit all required transfer events.
@fhenneke fhenneke requested a review from harisang September 18, 2024 13:03
@fhenneke fhenneke merged commit 0b85268 into main Sep 21, 2024
1 check passed
@fhenneke fhenneke deleted the update_balance_changes branch September 21, 2024 08:40
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.

Adapt balances changes to account for burn and mint
2 participants