BlockTrackerrune bonded
Updated 2024-12-03
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 bonded as (
select
date_trunc('day', block_timestamp) as date,
sum(e8)/pow(10,8) as rune_bond
from thorchain.defi.fact_bond_events
where bond_type IN (
'bond_reward',
'bond_paid'
)
group by 1
)
,
unbond as (
select
date_trunc('day', block_timestamp) as date,
sum(e8)/pow(10,8) as rune_unbond
from thorchain.defi.fact_bond_events
where bond_type IN (
'bond_returned',
'bond_cost'
)
group by 1
)
,
calender as (
with dates as (
select
to_date('2021-02-28') as date
union all
select
date + 1
from dates
where date < current_date)
select *
from dates
QueryRunArchived: QueryRun has been archived