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

Include all pod users in retroactive-query #7

Open
wants to merge 3 commits into
base: amended
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
@@ -1,5 +1,22 @@
# @pooltogether/retroactive-query

Some of the addresses involved in the v2 USDC and DAI pods were erroneously ommited from the POOL retroactive claims distribution.

The mismatch between this PR and the original lies within the fact that the `Deposited` event fires when funds have been deposited but the corresponding `Transfer` event in Google bigqueries public dataset may not have.

Now instead, we pull synthesize mint events from both the tokens `Transfer` event *and* `Deposited` event. Similarly, we now synthesize `Burn` events from the `PendingDepositWithdrawn` *and* `Transfer` event.

We also filter to exclude deposits and withdrawals made within the same transaction for the same value, which was what detered us from taking the above approach previously.

This results in 56 new USDC pod addressees, and 252 new DAI pod addresses.

A CSV summary of the update can be seen between [original](./files/retro-query.csv) and [update](./files/retro-query-fork.csv) and on Google Sheets (here)[https://docs.google.com/spreadsheets/d/15DrnIMgw_lICkPijL2fT9iNimzp-aJgn07Czylsi6vA/edit?pli=1#gid=174178250].
Note these files can be generated by following the process below.


## Old Readme


[![Run Queries](https://github.com/pooltogether/retroactive-query/workflows/Run%20Queries/badge.svg)](https://github.com/pooltogether/retroactive-query/actions?query=workflow%3A%22Run+Queries%22)

This repository contains queries that produce the tables of retroactive POOL token distributions.
Expand Down