mucryptoTVL by blockchain/category
Updated 2024-10-01
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
›
⌄
with resps as
(select defillama.get('/protocols', {}) as resp),
b as (
select
value:category as category,
value:chainTvls as blockchains
from resps,
lateral flatten (input => resp:data)
where category = 'Governance Incentives'),
a as (
select
*
from b,
lateral flatten (input => blockchains)),
list as (
select
key as "BLOCKCHAIN/CATEGORY",
sum(value) as tvl_,
from a
group by 1),
total as (
select
sum(tvl_) as total_number
from list)
select
"BLOCKCHAIN/CATEGORY",
tvl_,
case
when
tvl_ <1000 then concat('$', to_varchar(cast(tvl_ as decimal(38, 2))::string))
when
QueryRunArchived: QueryRun has been archived