NuveveCryptoArchivedTop 10 OSMO Swap Pairs With Highest Average Fee
Updated 2022-06-26
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
›
⌄
with swaps as (
select
from_currency,
to_currency,
tx_id
from osmosis.core.fact_swaps
where tx_status = 'SUCCEEDED'
),
fees as (
select
swaps.from_currency as from_asset,
swaps.to_currency as to_asset,
avg(replace(transactions.fee, 'uosmo', '')) as avg_fee
from osmosis.core.fact_transactions as transactions
inner join swaps on transactions.tx_id = swaps.tx_id
where transactions.tx_status = 'SUCCEEDED'
and transactions.fee like '%uosmo%'
group by swaps.from_currency, swaps.to_currency
)
select
from_label.project_name as from_asset,
to_label.project_name as to_asset,
fees.avg_fee as fee_uosmo
from fees
inner join osmosis.core.dim_labels as from_label on from_label.address = fees.from_asset
inner join osmosis.core.dim_labels as to_label on to_label.address = fees.to_asset
order by fees.avg_fee desc
limit 10
Run a query to Download Data