Query editor
-- Aave: monthly gross borrow event volume (USD) by chain-- Same-transaction repayments are not subtracted from this flow.SELECT date_trunc('month', block_time) AS month,blockchain,sum(amount_usd) AS borrow_usd,count(*) AS borrow_events,count(DISTINCT tx_hash) AS transactionsFROM lending.borrowWHERE project = 'aave'AND transaction_type = 'borrow'AND block_time >= date_trunc('month', now()) - interval '24' monthGROUP BY 1, 2ORDER BY 1, 2