Query editor
-- This query has been migrated to run on DuneSQL.-- If you need to change back because you’re seeing issues, use the Query History view to restore the previous version.-- If you notice a regression, please email [email protected].WITH data AS (SELECTCASEWHEN value / CAST(1e18 AS DOUBLE) < 0.1THEN '0.1 ETH or less'WHEN value / CAST(1e18 AS DOUBLE) BETWEEN 0.1 AND 0.5THEN '0.1 to 0.5 ETH'WHEN value / CAST(1e18 AS DOUBLE) BETWEEN 0.5 AND 1THEN '0.5 to 1 ETH'WHEN value / CAST(1e18 AS DOUBLE) BETWEEN 1 AND 2THEN '1 to 2 ETH'WHEN value / CAST(1e18 AS DOUBLE) BETWEEN 2 AND 5THEN '2 to 5 ETH'WHEN 5 <= value / CAST(1e18 AS DOUBLE)THEN '5 ETH or more'END AS Amount,COUNT(*) AS DepositsFROM ethereum.transactionsWHERE"to" = 0xaBEA9132b05A70803a4E85094fD0e1800777fBEFAND value > 0 /* this remove the tx from zkSync L2 Operator */GROUP BY1ORDER BYAmount)SELECTamount AS "Amount",deposits AS "Deposits",CONCAT(cast(ROUND((Deposits * 100) / CAST(SUM(Deposits) OVER () AS DOUBLE), 1) as varchar), '%') AS "Percentage"FROM dataORDER BYAmount