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].WITHaddresses AS (SELECT DISTINCT"to"FROMethereum."traces"WHERE"from" = 0x4d05e3d48a938db4b7a9a59a802d5b45011bde58AND "success" = TRUEAND "call_type" = 'call'AND NOT "to" IN (0x3bdc69c4e5e13e52a65f5583c23efb9636b469d6,0xae78736cd615f374d3085123a210448e74fc6393))SELECT"from" AS contract_address,SUM(CAST(value AS DOUBLE) / 1e18) AS amount,COUNT(*) AS depositsFROMethereum."traces"WHERE"to" = 0x00000000219ab540356cBB839Cbe05303d7705FaAND "success" = TRUEAND "call_type" = 'call'AND "from" IN (SELECT*FROMaddresses)GROUP BY1ORDER BY1