Query editor
WITH token_buys AS (SELECTDATE_TRUNC('day', a.block_time) AS calendar_day,c."value" / 1e18 / 0.0101 AS token_boughtFROM ethereum.transactions AS aINNER JOIN ethereum.traces_decoded AS bON a.hash = b.tx_hashINNER JOIN erc20_ethereum.evt_Transfer AS cON a.hash = c.evt_tx_hashWHEREa.to = 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD --Uniswap Universal RouterAND a.success = TRUEAND b.function_name = 'execute'AND c.to = 0x17CC6042605381c158D2adab487434Bde79Aa61C --Pond "Distillery" aka Gnosis Safe multisigAND c.contract_address = 0x423f4e6138E475D85CF7Ea071AC92097Ed631eea --$PNDCORDER BYcalendar_day)SELECTcalendar_day,sum(token_bought)/1000000000 AS daily_token_boughtFROM token_buysGROUP BYcalendar_dayORDER BYcalendar_day asc