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 */WITHtotalTaxRevenueV1 AS (SELECTSUM(value) / 1e18 AS totalTaxV1ETHFROMethereum.tracesWHERE/* UnibotV1Address */"from" = 0x25127685dC35d4dc96C7fEAC7370749d004C5040/* UnibotV1DeploymentBlockNumber */AND block_number >= 17277183AND tx_success = true),unibotV2ETHWithdrawals AS (SELECTblock_time,value,toFROMethereum.tracesWHERE/* UnibotV2Address */"from" = 0xf819d9cb1c2a819fd991781a822de3ca8607c3c9/* UnibotV2DeploymentBlockNumber */AND block_number >= 17464252AND tx_success = true),totalRevenue AS (SELECTSUM(value) / 1e18 AS totalTaxETHFROMunibotV2ETHWithdrawals),totalRevenue24 AS (SELECTSUM(value) / 1e18 AS totalTax24hETHFROMunibotV2ETHWithdrawalsWHEREblock_time >= NOW() - INTERVAL '24' hour),teamRevenue AS (SELECTSUM(value) / 1e18 AS teamRevenueETHFROMunibotV2ETHWithdrawalsWHERE/* TeamWallet */to = 0xDc3d4E12Ab9EEE060dC4De6b3D0b8Fbf129d7Dad