Query editor
--token0 is ethWITHconfig AS (SELECT'ethereum' AS blockchain,/* WETHAddress */0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 AS wethAddress,/* ODDeploymentBlockNumber */12754421 AS deploymentBlockNumber,/* ODDeploymentTimestamp */CAST('2021-07-03 00:00:00.000 UTC' AS TIMESTAMP) AS deploymentTimestamp,/* camelotV3Address */0x2837809FD68e4a4104af76bbec5b622b6146B2cb AS pairAddress,0xe76C6c83af64e4C60245D8C7dE953DF673a7A33D AS tokenAddress,18 AS decimals),supply AS (SELECTSUM(IF("from" = 0x0000000000000000000000000000000000000000,value,- value)) / POWER(10, decimals) AS supplyFROMerc20_ethereum.evt_transferJOIN config ON (contract_address = tokenAddressAND evt_block_time >= deploymentTimestamp)WHERE("from" = 0x0000000000000000000000000000000000000000OR to = 0x0000000000000000000000000000000000000000OR to = 0x000000000000000000000000000000000000dEaD)GROUP BYdecimals),pair AS (SELECTpool,token0,token1FROMuniswap_v3_multichain.uniswapv3factory_evt_poolcreatedWHEREpool = (SELECTpairAddressFROMconfig)LIMIT1),wethUSDPrices AS (SELECT