Query editor
WITH usdc_prices AS (SELECT DATE_TRUNC('minute', minute) as minute, priceFROM prices.usdWHERE blockchain = 'ethereum' AND symbol = 'USDC' -- temporarily set to USDCORDER BY minute DESC), -- could update to make this as average pricestaked_yu_cumulative_net_flows AS (SELECT"date",SUM(net_staked_yu_flow) OVER (ORDER BY date ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS cumulative_net_staked_yu_flowFROM query_4186314 -- Staked YU Daily Net Flows (Testnet)ORDER BY 1 DESC)SELECT "date", cumulative_net_staked_yu_flow, cumulative_net_staked_yu_flow * price as tvl, price as usdc_priceFROM staked_yu_cumulative_net_flowsLEFT JOIN usdc_pricesON "date" = minuteWHERE "date" >= date '2024-08-21'ORDER BY 1 DESC