adriaparcerisasThorchain Stablecoin Swappers synthetics
Updated 2022-07-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
usdc_swappers_from as (
SELECT
trunc(block_timestamp,'day') as date,
--from_address as swappers_from,
sum(from_amount_usd) as volume_from,
count(distinct tx_id) as n_swaps_from
from flipside_prod_db.thorchain.swaps
where block_timestamp>='2022-01-01' and from_asset ='ETH/USDC-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48'
group by 1
),
usdc_swappers_to as (
SELECT
trunc(block_timestamp,'day') as date,
--native_to_address as swappers_to,
sum(to_amount_usd) as volume_to,
count(distinct tx_id) as n_swaps_to
from flipside_prod_db.thorchain.swaps
where block_timestamp>='2022-01-01' and to_asset ='ETH/USDC-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48'
group by 1
),
busd_swappers_from as (
SELECT
trunc(block_timestamp,'day') as date,
--from_address as swappers_from,
sum(from_amount_usd) as volume_from,
count(distinct tx_id) as n_swaps_from
from flipside_prod_db.thorchain.swaps
where block_timestamp>='2022-01-01' and from_asset='BNB/BUSD-BD1'
group by 1
),
busd_swappers_to as (
SELECT
trunc(block_timestamp,'day') as date,
--native_to_address as swappers_to,
sum(to_amount_usd) as volume_to,
Run a query to Download Data