Query editor
WITH params AS (SELECTCOALESCE(TRY_CAST('{{Start Date}}' AS TIMESTAMP), TIMESTAMP '2024-01-01 00:00:00') AS current_start,COALESCE(TRY_CAST('{{End Date}}' AS TIMESTAMP), CURRENT_TIMESTAMP) AS current_end)SELECTm.user_wallet,-- Total distinct deposit transactionsCOUNT(DISTINCT m.tx_hash) AS deposit_count,-- Total USD volume depositedSUM(m.amount_usd) AS total_deposit_volume_usdFROM dune.igboweefe.result_zerc_20_database mCROSS JOIN params pWHERE m.block_time >= p.current_startAND m.block_time < p.current_end-- 🔥 IMPORTANT: Exclude Adaptors and Relayer Bots from the human leaderboardAND m.user_wallet NOT IN (0x3fcbc7f919b712258859e2e3c78188168e47b287, -- zUSDC Adaptor0xfde2c5758bbddcdea2d73edeb5c13de98b21eb7d, -- zETH Adaptor0x04033cfaecbaa4c133c225314bad1bf7930453bd, -- Primary Relayer Bot0xcfd18266d02436189a7f54642e17e1373e758da5 -- Secondary Relayer Bot)GROUP BY 1ORDER BY total_deposit_volume_usd DESCLIMIT 100;