Query editor
with user as (selectweek,'AAVE' as protocol,active_users,deposit_users,withdraw_users,borrow_users,repay_usersfrom query_6929773where week>= date '2024-12-27'unionselectweek,'Morpho' as protocol,active_users,supply_users,withdraw_users,borrow_users,repay_usersfrom query_6929234where week>= date '2024-12-27'union allselectweek,'Maple' as protocol,active_users,deposit_users,withdraw_users,borrow_users,repay_usersfrom query_6929669where week>= date '2024-12-27'union allselectweek,'Kamino' as protocol,active_users,supply_users,withdraw_users,borrow_users,repay_usersfrom query_6940295where week>= date '2024-12-27'union allSELECTdate_trunc('day', (date_trunc('week', (day) + interval '3' day)) - interval '3' day) AS week,'Venus' as protocol,cast(count(distinct user) FILTER (WHERE active = 1) as double) AS active_user,cast(count(distinct user) FILTER (WHERE active_supply = 1) as double) AS supply_user,cast(count(distinct user) FILTER (WHERE active_redeem = 1) as double) AS redeem_user,cast(count(distinct user) FILTER (WHERE active_borrow = 1) as double) AS borrow_user,cast(count(distinct user) FILTER (WHERE active_repay = 1) as double) AS repay_user-- 0 as collateral_usersFROM dune.xvslove_team.daily_user_statsWHERE day >= date '2025-01-01'GROUP BY 1,2union allselectweek,