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

fix balancer growth query and research alternatives for it #46

Open
mendesfabio opened this issue Nov 28, 2023 · 4 comments
Open

fix balancer growth query and research alternatives for it #46

mendesfabio opened this issue Nov 28, 2023 · 4 comments
Assignees

Comments

@mendesfabio
Copy link
Member

Context

We worked in the past on this query to measure Balancer Growth - the idea was to decompose the growth of the TVL into two so as to only take credit for the part of the growth that can be attributed to us (remove market prices influence).

Requirements

  • Migrate the query to DuneSQL;
  • Add support to V2 liquidity;
  • Research alternatives approach.
@mendesfabio
Copy link
Member Author

mendesfabio commented Nov 28, 2023

Vinicius talked on our 1-on-1 today about applying something similar to Real GDP

@viniabussafi
Copy link
Member

Migrated the former query.
Note: this only contemplates balancer v1 so far.
To do:
Research on how to apply real GDP formulas
Research on how to apply foreign growth calculations (considering USD and ETH as different currencies, I believe we can measure balancer growth in both "worlds", by inflation differential rates

@viniabussafi
Copy link
Member

Working on writing the query for V2: https://dune.com/queries/3253042

@viniabussafi
Copy link
Member

viniabussafi commented Jan 4, 2024

the protocol_liquidity_eth column in the liquidity spell eliminates the need for a bunch of workarounds regarding this:

Research on how to apply foreign growth calculations (considering USD and ETH as different currencies, I believe we can measure balancer growth in both "worlds", by inflation differential rates

After some validation, we now have:
Balancer growth (eth)
Balancer growth (usd)

in progress:
calculating usd growth considering us inflation so we can calculate real growth

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

No branches or pull requests

2 participants