Query editor
-- Platform totals as at the latest common day across deployments.-- Source: query_8816719, which already clips every arm to a shared `data_as_of`-- so this join cannot pick up a day that only some arms have reached.WITH latest AS (SELECT max(day) AS day FROM query_8816719)SELECTmax(m.data_as_of) AS data_as_of,sum(m.total_lent) AS total_lent,sum(m.total_active_lending) AS total_active_lending,sum(m.institutional_senior_funding) AS institutional_senior_funding,sum(m.total_active_lending)- sum(m.institutional_senior_funding) AS lender_pool_claim,sum(m.lender_interest_earned) AS lender_interest_earned,sum(m.protocol_fees_accrued) AS protocol_fees_accrued,sum(m.protocol_fees_paid) AS protocol_fees_paid,sum(m.losses_cumulative) AS losses_to_date,count(*) AS chains_coveredFROM query_8816719 mJOIN latest ON m.day = latest.day