Query editor
With eth_price as(selectdate_trunc('day', "minute") as dt,avg(price) as pricefrom prices.usdwhere symbol = 'ETH'and contract_address is nullgroup by 1having date_trunc('day', "minute") > date '2025-03-20'),btc_price as(selectdate_trunc('day', "minute") as dt,avg(price) as pricefrom prices.usdwhere symbol = 'BTC'and contract_address is nullgroup by 1having date_trunc('day', "minute") >= date '2025-03-20'),tacETH_supply as(selectdate_trunc('day', block_time) as dt,sum(CASE WHEN "from" = 0x0000000000000000000000000000000000000000 THEN amount ELSE 0 END) as total_minted,sum(CASE WHEN "to" = 0x0000000000000000000000000000000000000000 THEN amount ELSE 0 END) as total_burned,sum(CASE WHEN "from" = 0x0000000000000000000000000000000000000000 THEN amount ELSE 0 END) -sum(CASE WHEN "to" = 0x0000000000000000000000000000000000000000 THEN amount ELSE 0 END) as amount --token supply = total minted - total burnedfrom tokens.transferswhere lower(symbol) = 'taceth'and lower(blockchain) = 'ethereum'and contract_address = 0x294eecec65A0142e84AEdfD8eB2FBEA8c9a9fbad --tacEth CAand block_time >= date '2025-03-20'group by 1),tacBTC_supply as(selectdate_trunc('day', block_time) as dt,sum(CASE WHEN "from" = 0x0000000000000000000000000000000000000000 THEN amount ELSE 0 END) as total_minted,sum(CASE WHEN "to" = 0x0000000000000000000000000000000000000000 THEN amount ELSE 0 END) as total_burned,sum(CASE WHEN "from" = 0x0000000000000000000000000000000000000000 THEN amount ELSE 0 END) -sum(CASE WHEN "to" = 0x0000000000000000000000000000000000000000 THEN amount ELSE 0 END) as amountfrom tokens.transferswhere lower(symbol) = 'tacbtc'and lower(blockchain) = 'ethereum'and contract_address = 0x6Bf340dB729d82af1F6443A0Ea0d79647b1c3DDf -- tacBTC CAand date_trunc ('day',block_time) >= date '2025-03-20'group by 1),tacusd_supply as(selectdate_trunc('day', block_time) as dt,sum(CASE WHEN "from" = 0x0000000000000000000000000000000000000000 THEN amount ELSE 0 END) as total_minted,sum(CASE WHEN "to" = 0x0000000000000000000000000000000000000000 THEN amount ELSE 0 END) as total_burned,