freemartianMonthly Wallets - s
Updated 2022-05-05
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
›
⌄
with delegators as (
select delegator_address, sum (event_amount_usd) as delegation_amount, date_trunc ('month', block_timestamp) as DATE
from terra.staking
where tx_status = 'SUCCEEDED'
group by delegator_address, date
),
swapper as (
select trader, sum (offer_amount_usd) as swap_amount, date_trunc ('month', block_timestamp) as time
from terra.swaps
where tx_status = 'SUCCEEDED'
group by trader, time
)
select count (trader), DATE
from delegators d
inner join swapper s on s.trader = d.delegator_address
where delegation_amount > 100
and swap_amount > 200
group by trader, DATE
Run a query to Download Data