Query editor
-- Laso Per Chain-- Monthly depositing users and volume by blockchain (the on-chain analogue of P2P.me's-- per-country view: Laso does not reveal the user's country on-chain).-- unique_users counts sender_type = 'user' only; volume includes exchange hot wallets.-- Source: Laso Deposits Base (SGV), dune.socialgraphventures.result_laso_deposits_base_sgv.WITH lim AS (SELECT CAST(date_trunc('month', MAX(data_through) + INTERVAL '1' DAY) AS date) AS first_open_monthFROM dune.socialgraphventures.result_laso_deposits_base_sgv)SELECTDATE_FORMAT(month, '%Y-%m') AS deposit_month,blockchain,COUNT(DISTINCT CASE WHEN sender_type = 'user' THEN sender END) AS unique_users,ROUND(SUM(amount_usd), 0) AS total_volume,COUNT(*) AS deposits,ROUND(SUM(amount_usd) / COUNT(*), 0) AS avg_depositFROM dune.socialgraphventures.result_laso_deposits_base_sgvWHERE sender_type IN ('user', 'cex')AND month >= DATE '2023-05-01'AND month < (SELECT first_open_month FROM lim)GROUP BY 1, 2ORDER BY 1 DESC, 4 DESC