Query editor
-- LidoGAAP Protocol Economics-- =============================-- Built with Steakhouse Accounting and Finance Undertaking (SAFU) CryptoGAAP standards-- in close collaboration with Lido DAO's Analytics Group-- @SteakFi https://steakhouse.financial 🤝 https://lido.fi @LidoFinance-- Please share your comments and feedback on research.lido.fi-- We cannot prevent any commercial use of this data but if you do resell it or reuse the insights and ideas,-- You are kindly asked to publicly and visibly attribute the work to Steakhouse Financial & Lido DAO Analytics with the corresponding hyperlinks above-- You are further encouraged to donate to fund the maintenance of open source protocols, software and data-- by sending ERC-20 tokens to the Lido DAO Aragon Treasury address: 0x3e40D73EB977Dc6a537aF587D48316feE66E9C8c--Updated 2026-06-08 to reflect DBT infraWITH calendar(period) AS (SELECT*FROM UNNEST(SEQUENCE(DATE_TRUNC('day', CAST('2020-12-01' AS TIMESTAMP)),DATE_TRUNC('day', CAST(NOW() AS TIMESTAMP)),INTERVAL '1' DAY))), tokens AS (select * from (values(0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32), --LDO(0x6B175474E89094C44Da98b954EedeAC495271d0F), --DAI(0xdC035D45d973E3EC169d2276DDab16f1e407384F), --USDS(0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD), --Savings USDS (sUSDS)(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48), --USDC(0xdAC17F958D2ee523a2206206994597C13D831ec7), -- USDT(0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2), --WETH(0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0), --MATIC(0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84), --stETH(0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0), --wstETH(0xcd3c0F51798D1daA92Fb192E57844Ae6cEE8a6c7), --strETH(0x4c9EDD5852cd905f086C759E8383e09bff1E68B3), --USDe(0x4Ce1ac8F43E0E5BD7A346A98aF777bF8fbeA1981), --earnUSD(0xBBFC8683C8fE8cF73777feDE7ab9574935fea0A4), --earnETH(0xA1290d69c65A6Fe4DF752f95823fae25cB99e5A7) --rsETH) as tokens(address)), eth_prices as (SELECT DATE_TRUNC('day', minute) AS period,contract_address AS token,symbol,decimals,priceFROM prices.usdWHERE blockchain = 'ethereum'AND contract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2AND DATE_TRUNC('day', minute) >= CAST('2020-12-01' AS TIMESTAMP)AND DATE_TRUNC('day', minute) <= DATE_TRUNC('day', NOW() - INTERVAL '1' DAY)AND EXTRACT(hour FROM minute) = 23AND EXTRACT(minute FROM minute) = 59union all