Query editor
withtvl_lusd_3crv as (withlusd_pool as (Selectday,(selectsum(amount) as balancefromquery_3257742 day_transferwhereday_transfer.address = 0xed279fdd11ca84beef15af5d39bb4d4bee23f0caand day_transfer.token_address = tok.contract_addressand day_transfer.time <= last_days.day) * usd_price.price as amount_usd,tok.symbolfromquery_3257736 as last_days,tokens.erc20 tokjoin prices.usd usd_price on tok.blockchain = usd_price.blockchainand usd_price.contract_address = tok.contract_addresswheretok.contract_address = 0x5f98805a4e8be255a32880fdec7f6728c6568ba0and tok.blockchain = 'ethereum'and DATE_TRUNC('minute', last_days."day") = usd_price."minute"),crv3_pool as (Selectday,(selectsum(amount) as balancefromquery_3257742 day_transferwhereday_transfer.address = 0xed279fdd11ca84beef15af5d39bb4d4bee23f0caand day_transfer.token_address = tok.contract_addressand day_transfer.time <= last_days.day) * usd_price.price as amount_usd,tok.symbolfromquery_3257736 as last_days,tokens.erc20 tokjoin prices.usd usd_price on tok.blockchain = usd_price.blockchainand usd_price.contract_address = tok.contract_addresswheretok.contract_address = 0x6c3f90f043a72fa612cbac8115ee7e52bde6e490and tok.blockchain = 'ethereum'and DATE_TRUNC('minute', last_days."day") = usd_price."minute")selectl.day,l.amount_usd + c.amount_usd as tvlfromlusd_pool ljoin crv3_pool c on l.day = c.dayorder by1 desc),