hypergladelenders all time stats copy
Updated 2024-06-19
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 sam / lenders all time stats @ https://flipsidecrypto.xyz/sam/q/ZbgmNfXxXcmQ/lenders-all-time-stats
with deposits_base as (
select
block_timestamp,
tx_hash,
from_address as lender,
amount
from ethereum.core.ez_token_transfers
where block_timestamp >= '2021-01-01'
and origin_function_signature = '0x515bc323'
and contract_address = '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' -- usdc
and to_address = '{{borrower_pool}}' -- variable
)
select
count(distinct lender) as total_lenders,
count(distinct tx_hash) as deposit_transactions,
sum(amount) as total_usdc_deposits
from deposits_base
QueryRunArchived: QueryRun has been archived