Saleha.a-profit eth
Updated 2022-07-20
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
›
⌄
with bot as (
select
from_address as user
,count(distinct TX_ID) as tx_count
,sum(FROM_AMOUNT) as amount
from thorchain.swaps
where block_timestamp::date>= '2021-10-01'
and from_address like '0x%'
group by 1
having tx_count>100
)
select
origin_from_address
,count(DISTINCT tx_hash) as tx_count
,sum(AMOUNT_OUT_USD-AMOUNT_IN_USD) as profit
from ethereum.core.ez_dex_swaps
where origin_from_address in (
select user from bot
)
group by 1
having profit>0
-- order by 1
Run a query to Download Data