Query editor
withsf_tvt_v1_t01 as (withsf_tvt_v1_q01 as (select*fromethereum.transactionswhereblock_time > date('2023-12-15') --- since launchand success = true --- for successful transactionand to = 0xB74749b2213916b1dA3b869E41c7c57f1db69393 --- token vault),sf_tvt_v1_q02 as (selectblock_time,hash,"from",BYTEARRAY_SUBSTRING (data, 1, 4) as Line0,BYTEARRAY_SUBSTRING (data, 5, 32) as Line1,BYTEARRAY_SUBSTRING (data, 37, 32) as Line2fromsf_tvt_v1_q01order by1 desc),sf_tvt_v1_q03 as (selectblock_time as "Time","from" as "UserAddress",Line0 as "Action",Line1 as "Asset",TRY_CAST(BYTEARRAY_TO_UINT256 (Line2) AS DOUBLE) as "Amount",hash as "TxnHash"fromsf_tvt_v1_q02),prices AS (selectdate_trunc('day', minute) as day,casewhen symbol = 'WETH' then 'ETH'when symbol = 'FIL' then 'axlFIL'else symbolend as symbol,contract_address,blockchain,decimals,avg(price) AS pricefromprices.usd pwhere((blockchain = 'ethereum'AND (symbol = 'WETH'OR symbol = 'WBTC'OR symbol = 'USDC')