Query editor
WITH latest_usdc_price AS (SELECT priceFROM prices.usdWHERE blockchain = 'ethereum' AND symbol = 'USDC' -- temporarily set to USDCORDER BY minute DESCLIMIT 1),yu_supply as (SELECT SUM(yu_amount) as supplyFROM query_4182303 -- view: dune.btcdefi.result_yala_testnet_mints_and_burns),latest_btc_price as (SELECT price as btc_priceFROM prices.usdWHERE blockchain = 'ethereum' AND symbol = 'WBTC' -- temporarily set to WBTCORDER BY minute DESCLIMIT 1)SELECTsupply,price,supply * price AS tvl,btc_priceFROM yu_supplyCROSS JOIN latest_usdc_priceCROSS JOIN latest_btc_price