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]./* original RP NO contract: 0xdc9c66155667578179ed82bd17e725aba9dacd09 *//* currnet RP NO contract: 0xdcd51fc5cd918e0461b9b7fb75967fdfd10dae2f *//* current RP staking contract: 0x4D05E3d48a938db4b7a9A59A802D5b45011BDe58 */WITHnodeoperatordeposits AS (SELECT"block_time","value" / cast(1e18 as double) AS amountFROMethereum."transactions"WHERE"to" IN (0xdcd51fc5cd918e0461b9b7fb75967fdfd10dae2f /* current RP contract */,0xdc9c66155667578179ed82bd17e725aba9dacd09) /* original RP contract */AND "success" = TRUE)SELECTDATE_TRUNC('day', block_time) AS time,SUM(amount) AS amount,COUNT(*) AS deposits,SUM(SUM(amount)) OVER (ORDER BYDATE_TRUNC('day', block_time)) AS total_amount,SUM(COUNT(amount)) OVER (ORDER BYDATE_TRUNC('day', block_time)) AS total_depositsFROMnodeoperatordepositsGROUP BY1ORDER BY1