Query editor
/* WETHAddress: 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 *//* UnibotV2Address: 0xf819d9cb1c2a819fd991781a822de3ca8607c3c9 *//* UnibotV2DeploymentBlockNumber: 17464252 *//* UniswapV2PairAddress: 0x8dbee21e8586ee356130074aaa789c33159921ca *//* RevShareWallet: 0x3FC3549272a5ac9902F20c94bd68EE344eC94dc2 *//* TeamWallet: 0xDc3d4E12Ab9EEE060dC4De6b3D0b8Fbf129d7Dad *//* BotDeployerAddress: 0x40800a492a04Ae99c7fa6A0C2B52E3bEb6675A0D *//* BotDeployerFirstTransactionBlockNumber: 17300043 *//* BotDeployerFirstTransactionTimestamp: '2023-05-20 10:27:35.000 UTC' *//* UnibotV1Address: 0x25127685dC35d4dc96C7fEAC7370749d004C5040 *//* UnibotV1DeploymentBlockNumber: 17277183 */WITHlastesUnibotWETHPrice AS (SELECT(reserve0 / 1e18) / (reserve1 / 1e18) AS unibotWETHFROMuniswap_v2_ethereum.Pair_evt_SyncWHERE/* UniswapV2PairAddress */contract_address = 0x8DbEE21E8586eE356130074aaa789C33159921CaORDER BYevt_block_time DESC,evt_index DESCLIMIT1),latestWethUSDPrice AS (SELECTprice AS wethUSDFROMprices.usdWHEREblockchain = 'ethereum'/* WETHAddress */AND contract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2ORDER BYminute DESCLIMIT1),revenueByDay AS (SELECTblock_date,totalCombinedRevenueETH,totalBotFeeRevenueETH,totalTaxV1AndV2RevenueETHFROM/* Revenue By Day */query_2651138),last365DaysOfRevenue AS (SELECTblock_date,SUM(totalCombinedRevenueETH) OVER (ORDER BYblock_date ROWS BETWEEN 364 PRECEDINGAND CURRENT ROW) AS rolling365DRevenueETH,SUM(totalBotFeeRevenueETH) OVER (ORDER BY