upd expiring model to incl usdc (#201)

This commit is contained in:
Jack Forgash 2023-10-12 09:35:00 -06:00 committed by GitHub
parent af9a6912ab
commit 964f14ab16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,7 @@ transfers AS (
SELECT
_inserted_timestamp,
tx_id,
event_contract,
COUNT(event_type) AS event_count,
MAX(
event_index + 1
@ -43,9 +44,11 @@ transfers AS (
)
GROUP BY
_inserted_timestamp,
tx_id
tx_id,
event_contract
HAVING
event_count = max_index
OR event_contract = 'A.b19436aae4d94622.FiatToken'
),
withdraws AS (
SELECT