TOKEN | NET_BORROW | NET_DEPPSIT | Utilization Rate | |
---|---|---|---|---|
1 | ETH | 757657489.631025 | 2273685421.0515 | 33.322881108 |
2 | tETH | 305432936.920253 | 1081869042.20516 | 28.231969398 |
3 | USDC | 574171914.567143 | 1256256929.16834 | 45.704974933 |
4 | TIA | 510656.179542323 | 4432620.37093076 | 11.520413137 |
5 | SOL | 69244323.2910867 | 301264115.236704 | 22.984590527 |
Hessishast - utl
Updated 2025-03-16
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
›
⌄
WITH all_events AS (
SELECT
tx_id,
CASE
WHEN value ILIKE '%LendingAccountDeposit%' THEN 'deposit'
WHEN value ILIKE '%LendingAccountBorrow%' THEN 'borrow'
WHEN value ILIKE '%LendingAccountWithdraw%' THEN 'withdraw'
WHEN value ILIKE '%LendingAccountRepay%' THEN 'repay'
END AS action
FROM eclipse.core.fact_transactions,
TABLE(FLATTEN(input => LOG_MESSAGES))
WHERE tx_id IN (
SELECT DISTINCT tx_id
FROM eclipse.core.fact_events_inner
WHERE INSTRUCTION_PROGRAM_ID = 'Astro1oWvtB7cBTwi3efLMFB47WXx7DJDQeoxi235kA'
)
AND (value ILIKE '%LendingAccountDeposit%'
OR value ILIKE '%LendingAccountBorrow%'
OR value ILIKE '%LendingAccountWithdraw%'
OR value ILIKE '%LendingAccountRepay%')
),
prices as
( SELECT date_trunc('day',hour) as day, avg(close) as pr, case
when ASSET_ID = 'ethereum' then 'ETH'
when ASSET_ID = 'usd-coin' then 'USDC'
when ASSET_ID = 'solana' then 'SOL'
when ASSET_ID = 'turbo-eth' then 'tETH'
when ASSET_ID = 'celestia' then 'TIA'
end as Eclipse_cr
from crosschain.price.fact_prices_ohlc_hourly
where hour::date >= '2024-10-01' and
ASSET_ID in ('ethereum', 'solana', 'usd-coin','turbo-eth','celestia')
and PROVIDER = 'coingecko'
GROUP by all ),
Last run: 13 days ago
5
277B
542s