DEPOSITED | WITHDRAWN | SUPPLIED | BORROW | REPAYED | BORROWED | NET | USERS | |
---|---|---|---|---|---|---|---|---|
1 | 17450490.5267725 | 4659402.89683017 | 12791087.6299423 | 5631783.88997972 | 2501305.09882186 | 3130478.79115786 | 9660608.83878447 | 100 |
Sniperliberal-moccasin
Updated 2025-02-08
999
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
›
⌄
-- forked from maybeyonas / euler_vault_historical_status @ https://flipsidecrypto.xyz/maybeyonas/q/Oq6Ml6c8bsvH/euler_vault_historical_status
with pricet as (
select
distinct TOKEN_ADDRESS,
SYMBOL as sym,
PRICE
from crosschain.price.ez_prices_hourly
join (
select
TOKEN_ADDRESS as max_token,
max(HOUR) as max_hour
from crosschain.price.ez_prices_hourly
group by 1
) on TOKEN_ADDRESS = max_token and max_hour = hour
where token_address in ('0xa1290d69c65a6fe4df752f95823fae25cb99e5a7','0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee',
'0xfae103dc9cf190ed75350761e95403b7b8afa6c0','0x4c9edd5852cd905f086c759e8383e09bff1e68b3',
'0xbf5495efe5db9ce00f80364c8b423567e58d2110','0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0',
'0x8c9532a60e0e7c6bbd2b2c1303f63ace1c3e9811','0xf951e335afb289353dc249e82926178eac7ded78',
'0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2','0x9d39a5de30e57443bff2a8307a4256c8797a3497',
'0x0a6e7ba5042b38349e437ec6db6214aec7b35676'
)
),
pools as (
select
CONTRACT_ADDRESS as pool,
concat('0x', substr(topics[2], 24 + 3, 32 + 8)) as asset
from swell.core.fact_event_logs
where topics[0] = '0x0cd345140b9008a43f99a999a328ece572a0193e8c8bf5f5755585e6f293b85e'
)
select
--*
sum(deposited_usd) as deposited,
sum(withdrew_usd) as withdrawn,
Last run: 3 months ago
1
126B
8s