datavortexmonthly borrowed assets
Updated 2025-01-21
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
›
⌄
SELECT
DATE_TRUNC('month', block_timestamp) AS "Month",
symbol AS "Stablecoin",
COUNT(DISTINCT sender_id) AS "Borrower",
COUNT(DISTINCT tx_hash) AS "Total Borrow Transactions",
SUM(amount_usd) AS "Total Borrowed Volume",
AVG(amount_usd) AS "Avg Borrowed Amount"
FROM
near.defi.ez_lending
WHERE
symbol IN (
'USDT',
'USDt',
'DAI',
'FRAX',
'USDT.e',
'USDC.e',
'USN'
)
AND actions IN ('borrow')
GROUP BY
DATE_TRUNC('month', block_timestamp), symbol
ORDER BY
"Month", symbol;
QueryRunArchived: QueryRun has been archived