generated from duneanalytics/DuneQueryRepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add flow most used stablecoins
- Loading branch information
1 parent
c659d87
commit c9dc4b7
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |