cybergenlab[Bridge Overview] TVL Bridge Metric
Updated 2024-11-16
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
›
⌄
-- Get Bridge TVL per sector as per Flipside sectoral definition
with bridge as (
select
date_trunc('month', date) as date,
'Bridge' as sector,
protocol,
category,
avg(chain_tvl) as tvl
from external.defillama.fact_protocol_tvl
where chain = 'Ethereum'
and category in ('Bridge')
and date >= dateadd(month, -1, date_trunc('month',current_date()))
and date < date_trunc('month',current_date())
and chain_tvl >0
group by 1, 2, 3, 4
order by 1 desc
)
select
date,
sum(tvl) as tvl
from bridge
group by 1
order by 1 desc
limit 1
QueryRunArchived: QueryRun has been archived