Query editor
-- Probe: FXRP pushed into the Firelight vault over the trailing 30 days, split premiums (RewardsDistributed,-- premium swapped to FXRP) vs incentives (IncentiveDistributed), annualised (simple, x365/30) on the average-- active totalAssets of the window -- same basis as Firelight's staker_apr_pct (query 8946613).with yld as (select 'premium' as kind, cast(vaultassetamount as double) / 1e6 as fxrpfrom firelight_flare.vaultrewarddistributor_evt_rewardsdistributedwhere evt_block_time >= now() - interval '30' dayunion allselect 'incentive', cast(vaultassetamount as double) / 1e6from firelight_flare.vaultrewarddistributor_evt_incentivedistributedwhere evt_block_time >= now() - interval '30' day),ta as (select avg(cast(totalassets as double) / 1e6) as avg_assetsfrom firelight_flare.firelightvault_evt_totalassetscheckpointedwhere evt_block_time >= now() - interval '30' day)select sum(case when kind = 'premium' then fxrp end) as premium_fxrp,sum(case when kind = 'incentive' then fxrp end) as incentive_fxrp,max(avg_assets) as avg_total_assets_fxrp,100 * sum(case when kind = 'premium' then fxrp end) / max(avg_assets) * 365 / 30 as premium_apr_pct,100 * sum(case when kind = 'incentive' then fxrp end) / max(avg_assets) * 365 / 30 as incentive_apr_pct,100 * sum(fxrp) / max(avg_assets) * 365 / 30 as total_apr_pct,(select staker_apr_pct from query_8946613) as firelight_published_apr_pctfrom yld cross join ta