Query editor
-- Monthly gross flash loan volume (USD) by protocol-- Principal can recur across events after repayment, so the sum measures turnover.SELECT date_trunc('month', block_time) AS month,project,sum(amount_usd) AS flashloan_usd,count(*) AS flashloans,count(DISTINCT ROW(blockchain, tx_hash)) AS transactionsFROM lending.flashloansWHERE block_time >= date_trunc('month', now()) - interval '12' monthGROUP BY 1, 2ORDER BY 1, 2