CryptoIcicleOsmo-12.Do Whales Have Diamond Hands?
Updated 2022-06-18
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
›
⌄
-- Payout 63.99 OSMO
-- Grand Prize 191.96 OSMO
-- Level Beginner
-- Q12. Does the swap behavior of OSMO whales differ from everyday users? How does it differ?
-- Create visuals showing what whales swap to and from compared to a normal Osmosis user.
-- For payment, submit the address of your Osmosis wallet.
with whales as (
select
delegator_address as wallet,
amount/1e6 as amount_staked,
rank() over (order by amount_staked desc ) as rank,
iff(rank <= 50, 'whale', 'non-whale') as type
from osmosis.core.fact_staking
where block_timestamp >= CURRENT_DATE - 30
order by amount_staked desc
)
select
date_trunc('month',block_timestamp) as date,
type,
count(distinct tx_id) as n_swaps,
count(distinct trader) as n_swappers
from osmosis.core.fact_swaps s join whales w on s.trader = w.wallet
group by date, type
Run a query to Download Data