Query editor
-- 16115.31 4666.12WITHgrantees AS (SELECTtitle,addressFROM(VALUES('Lenstube','\x01d79BcEaEaaDfb8fD2F2f53005289CFcF483464' :: bytea),('Lenster','\x3A5bd1E37b099aE3386D13947b6a90d97675e5e3' :: bytea)) x (title, address)),eth_donations AS (SELECTgrantees.title,tx.block_time,(tr.value) / 10 ^ 18 as eth_amount,(tr.value / 10 ^ 18) * pr.price as usd_amount,tx."from" as donorFROMethereum.transactions txLEFT JOIN ethereum.traces AS tr ON tx.hash = tr.tx_hashINNER JOIN grantees on tr."to" = grantees.addressLEFT JOIN (SELECTprice,minuteFROMprices.usdWHEREsymbol = 'WETH'and minute > '2023-04-23 12:00'and minute < '2023-05-11 00:00') AS pr on pr.minute = date_trunc('minute', tx.block_time)WHEREtr."from" = '\x0F8e03A2175184228A429A118653D068F3a0Bb35' --ETH SPLITTER ADDRESS? UPDATEand date_trunc('hour', tx.block_time) >= '2023-04-23 12:00'and date_trunc('hour', tx.block_time) < '2023-05-11 00:00'and tr.value > 0),dai_donations AS (SELECTgrantees.title,erc20.value / 10 ^ 18 as dai_amount,erc20.evt_block_time as block_time,erc20.from as donorFROMethereum.transactions tx --ethereum.tracesleft join erc20."ERC20_evt_Transfer" erc20 ON tx."hash" = erc20."evt_tx_hash"INNER JOIN grantees on erc20."to" = grantees.addresswheretx."to" = '\x12bb5bbbfe596dbc489d209299b8302c3300fa40'