MoeOsmosis Governance 1
Updated 2022-06-19Copy Reference Fork
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
›
⌄
with first_tx as (select
TX_FROM,
min(BLOCK_TIMESTAMP::date) as first_tx
from osmosis.core.fact_transactions
group by 1
)
,first_vote as (
select
voter,
min(BLOCK_TIMESTAMP::date) as first_vote
from osmosis.core.fact_governance_votes
group by 1
)
,time_diff as (select
voter,
first_tx,
first_vote,
DATEDIFF(day,first_tx, first_vote ) as time_dif
from first_tx t join first_vote v on t.tx_from = v.voter
)
select
avg (time_dif) from time_diff
Run a query to Download Data