tomingTop Depositors copy
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
›
⌄
-- forked from Abbas_ra21 / Top Depositors @ https://flipsidecrypto.xyz/Abbas_ra21/q/dMjepc7Xov5B/top-depositors
select
DEPOSITOR AS "Depositor Address",
sum(
case
when Amount_USD is not null then Amount_USD
else Amount * Price
end
) AS Volume,
Count(*) AS "Despoits Count"
from
base.defi.ez_lending_deposits A
inner join base.price.ez_hourly_token_prices B on B.TOKEN_ADDRESS = A.TOKEN_ADDRESS
and HOUR = date_trunc('hour', BLOCK_TIMESTAMP)
where
PLATFORM = 'Seamless'
group by
1 order by 2 desc limit 100
Run a query to Download Data