SocioAnalyticaNet Supply and Borrow
Updated 2025-01-24
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
26
27
28
29
30
31
32
33
34
35
36
›
⌄
with supply as (
SELECT
date_trunc('week', block_timestamp) as date,
sum(amount_usd) as amount_supply_usd
FROM bsc.defi.ez_lending_deposits
WHERE platform = 'Kinza'
GROUP BY 1
)
,
borrow as (
SELECT
date_trunc('week', block_timestamp) as date,
sum(amount_usd) as amount_borrowed_usd
FROM bsc.defi.ez_lending_borrows
WHERE platform = 'Kinza'
GROUP BY 1
)
, withdraw as (
SELECT
date_trunc('week', block_timestamp) as date,
sum(amount_usd) as amount_withdraw_usd
FROM bsc.defi.ez_lending_withdraws
WHERE platform = 'Kinza'
GROUP BY 1
)
,
repay as (
SELECT
date_trunc('week', block_timestamp) as date,
sum(amount_usd) as amount_repay_usd
FROM bsc.defi.ez_lending_repayments
WHERE platform = 'Kinza'
GROUP BY 1
)
SELECT
Auto-refreshes every 24 hours
QueryRunArchived: QueryRun has been archived