Pmisha-bmlMdxsuccess
Updated 2022-03-15
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 t1 as ( with tt as (
Select
date_trunc('day',block_timestamp) as d1,
count (distinct tx_id) as total
From Solana.swaps
Where swap_from_mint = 'So11111111111111111111111111111111111111112' and swap_to_mint!= 'So11111111111111111111111111111111111111112'
and SWAP_PROGRAM= 'orca'
and block_timestamp::date >= '2022-01-01' group by 1
),
ff as(Select
date_trunc('day',block_timestamp) as d2,
count (distinct tx_id) as success
From Solana.swaps
Where swap_from_mint = 'So11111111111111111111111111111111111111112' and swap_to_mint!= 'So11111111111111111111111111111111111111112'
and SWAP_PROGRAM= 'orca' and succeeded='TRUE'
and block_timestamp::date >= '2022-01-01' group by 1)
select tt.d1 as dt1,
(success/total)*100 as success_ORCA
from tt
inner join ff on tt.d1 = ff.d2),
t2 as (with tt as (
Select
date_trunc('day',block_timestamp) as d1,
count (distinct tx_id) as total1
From Solana.swaps
Where swap_from_mint = 'So11111111111111111111111111111111111111112' and swap_to_mint!= 'So11111111111111111111111111111111111111112'
and SWAP_PROGRAM= 'orca'
and block_timestamp::date >= '2022-01-01' group by 1
),
ff as(Select
date_trunc('day',block_timestamp) as d2,
count (distinct tx_id) as success1
Run a query to Download Data