Query editor
---- 1. https://dune.com/queries/3158564 - dsETH and Components 7dAPR | Content-Pod --- > Update it when there are new components-- ## Queries above are dependent to the query below.with-- token parametersproduct_token(address, symbol, decimals) as (values(0x341c05c0E9b33C0E38d64de76516b2Ce970bB3BE, 'dstETH', 18 ))-- tokens included in Index, param (component, component_symbol) as ( values( 0xae78736cd615f374d3085123a210448e74fc6393, 'rETH' ),( 0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0, 'wstETH' ),( 0xfe2e637202056d30016725477c5da089ab0a043a, 'SETH2' ),( 0xac3e018457b222d93114458476f3e3416abbe38f, 'sfrxETH' ),( 0xf1c9acdc66974dfb6decb12aa385b9cd01190e38, 'osETH' ),( 0xA35b1B31Ce002FBF2058D22F30f95D405200A15b, 'ETHx' ),( 0xf951E335afb289353dc249e82926178EaC7DEd78, 'swETH' ))-- generate timeseries, hours as (select distinct date_trunc('hour',time) as hour from ethereum.blocks where time >= timestamp '2023-01-12 00:00')-- generate timeseries wit symbol, hours_symbol as (select hour, component, component_symbol from hours cross join param), comp_apr_feed as (selectt0.symbol,t0.hour,t0.pd_start,t0.pd_length,t0.pd_apr,t0.pd_start_navfrom (select 'rETH' as symbol, date_trunc('hour', pd_start) as hour, * from query_2511550 -- rETH APR Updateswhere pd_apr is not nullunionselect 'wstETH' as symbol, date_trunc('hour', pd_start) as hour, * from query_2511613 -- wstETH APR Updateswhere pd_apr is not nullunionselect 'SETH2' as symbol, date_trunc('hour', pd_start) as hour, * from query_2511602 -- sETH2 APR Updateswhere pd_apr is not nullunionselect 'sfrxETH' as symbol, date_trunc('hour', pd_start) as hour, * from query_2737409 -- sfrxETH APR Updateswhere pd_apr is not nullunionselect 'osETH' as symbol, date_trunc('hour', pd_start) as hour, * from query_3287011 -- osETH APR Updateswhere pd_apr is not nullunion