Closed abhishekanirudhan closed 2 months ago
Implementing Aggregated Circulating Supply Pipeline
based on these references:
@abhishekanirudhan there are lockup contracts that contains a bug in the lockup amount calculation method, for this reason we can't rely entirely on RPC function calls. Indexer for explorer handled this issue with a custom logic. I created a RUST API that implement the Indexer for explorer logic and deployed in GCP Cloud Run to use in this pipeline.
The API returns the lockup amount per account that will give us better data granularity.
New databricks tables:
Currently running a backfill for the dates > 2024-04-22
backfill finished
The table
mainnet_explorer_public.aggregated__circulating_supply
has aggregate supply statistics. This table stopped updating on Mar 21, 2024.We use this table to understand total supply, including circulating and locked, and total staked and unstaked by day.