Query editor
-- Aave v3 Ethereum: taxas diárias (%) de USDC, USDT e WETH — supply (o que o depositante recebe) e borrow variável (o que o tomador paga)with horas as (selectdate_trunc('day', block_hour) as dia,case token_addresswhen 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 then 'USDC'when 0xdac17f958d2ee523a2206206994597c13d831ec7 then 'USDT'when 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 then 'WETH'end as ativo,deposit_rate,variable_borrow_ratefrom lending_market_hourly_agg.marketwhere blockchain = 'ethereum'and project = 'aave'and version = '3'and token_address in (0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, -- USDC0xdac17f958d2ee523a2206206994597c13d831ec7, -- USDT0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 -- WETH)and block_month >= cast(date_trunc('month', now() - interval '90' day) as date)and block_hour >= date_trunc('day', now()) - interval '90' day)selectdia,ativo || ' borrow' as serie,avg(variable_borrow_rate) * 100 as taxa_pctfrom horasgroup by 1, 2union allselectdia,ativo || ' supply' as serie,avg(deposit_rate) * 100 as taxa_pctfrom horasgroup by 1, 2order by 1, 2