Skip to content

Commit

Permalink
feat: add total value locked by chain
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdesalle committed Feb 4, 2025
1 parent fe084c8 commit 137e488
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions queries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ query_ids:
- 4611349 # Lockup: Priced Adjusted Remaining Balances
- 4611402 # Lockup: Total Value Locked (TVL)
- 4662176 # Lockup: Total Value Locked (TVL) Distribution by Token
- 4665836 # Lockup: Total Value Locked (TVL) Distribution by Chain
- 4607902 # Lockup: Weekly Stream Creation Count Change
- 4646230 # Lockup: Stream Category Usage Distribution
- 4646277 # Lockup: Chain Usage Distribution
Expand Down
14 changes: 14 additions & 0 deletions queries/lockup:_total_value_locked_(tv___4665836.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- part of a query repo
-- query name: Lockup: Total Value Locked (TVL) Distribution by Chain
-- query link: https://dune.com/queries/4665836


SELECT
chain,
SUM(remaining_balance_value) AS total_balance
FROM
query_4611349 -- Lockup: Priced Adjusted Remaining Balances
GROUP BY
chain
ORDER BY
total_balance DESC

0 comments on commit 137e488

Please sign in to comment.