Query editor
withconstants as (select0x0000000000000000000000000000000000000000 as zero,0x5f98805A4E8be255a32880FDeC7F6728C6568bA0 as lusd,0xB9D7DdDca9a4AC480991865EfEf82E01273F79C3 as blusd,0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490 as "3crv",0xEd279fDD11cA84bEef15AF5D39BB4d4bEE23F0cA as curve, -- LUSD-3CRV-f0x5fA5B62c8AF877CB37031e0a3B2f34A78e3C56A6 as yearn, -- Yearn LUSD-3CRV Vault0x57619FE9C539f890b19c61812226F9703ce37137 as cbm -- ChickenBondManager),lusd_price as (selectminute,price as lusd_pricefromprices.usd,constantswhereblockchain = 'ethereum'and contract_address = lusd),blusd_price as (selectminute,price as blusd_pricefromprices.usd,constantswhereblockchain = 'ethereum'and contract_address = blusd),interleaving as (selectevt_block_time as time,cast(value as double) / 1e18 as curve_supply,null as curve_lusd,null as curve_3crv,null as yearn_price_per_share,null as "3crv_virtual_price"fromcurvefi_ethereum.lusd_swap_evt_Transfer,constantswheresender = zerounion allselectevt_block_time,- cast(value as double) / 1e18,null,null,null,nullfromcurvefi_ethereum.lusd_swap_evt_Transfer,constantswherereceiver = zerounion all