Skip to content

Commit

Permalink
feat: add flow most used stablecoins
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdesalle committed Feb 4, 2025
1 parent c659d87 commit c9dc4b7
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 @@ -17,6 +17,7 @@ query_ids:
- 4646202 # Flow: Number of Created Streams (Past 24 Hours)
- 4646303 # Flow: Chain Usage Distribution
- 4646341 # Flow: Share of Stablecoin Streams
- 4666321 # Flow: Most Used Stablecoins
- 4606972 # Legacy: Cumulative Stablecoin Volume
- 4607189 # Legacy: Median Stablecoin Deposit
- 4600780 # Legacy: Stream Creation Count
Expand Down
24 changes: 24 additions & 0 deletions queries/flow:_most_used_stablecoins___4666321.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-- part of a query repo
-- query name: Flow: Most Used Stablecoins
-- query link: https://dune.com/queries/4666321


SELECT
q.chain,
t.symbol,
q.token,
COUNT(q.token) AS number_of_deposits
FROM
query_4606918 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_deposits DESC

0 comments on commit c9dc4b7

Please sign in to comment.