Skip to content

Commit

Permalink
feat: add lockup most used stablecoins
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdesalle committed Feb 4, 2025
1 parent f1f5a6b commit 6e0ccf8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions queries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ query_ids:
- 4646323 # Lockup: Median Cliff Duration
- 4646332 # Lockup: Share of Stablecoin Streams
- 4665451 # Lockup: Cancelation Data
- 4666198 # Lockup: Most Used Stablecoins
- 4606813 # Unified: Cumulative Stablecoin Volume
- 4606999 # Unified: Median Stablecoin Deposit
- 4600695 # Unified: Stream Creation Count
Expand Down
24 changes: 24 additions & 0 deletions queries/lockup:_most_used_stablecoins___4666198.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-- part of a query repo
-- query name: Lockup: Most Used Stablecoins
-- query link: https://dune.com/queries/4666198


SELECT
q.chain,
t.symbol,
q.token,
COUNT(q.token) AS number_of_streams
FROM
query_4580489 AS q
LEFT JOIN
tokens.erc20 AS t
ON
q.token = t.contract_address
AND q.chain = t.blockchain
WHERE
t.symbol IS NOT NULL
AND q.stablecoin_deposit > 0
GROUP BY
q.chain, q.token, t.symbol
ORDER BY
number_of_streams DESC

0 comments on commit 6e0ccf8

Please sign in to comment.