MLDZMNw3
Updated 2022-09-12Copy Reference Fork
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 tb1 as (select
*
from ethereum.core.ez_token_transfers
where ORIGIN_TO_ADDRESS='0xae1fc3947ee83aeb3b7fec237bcc1d194c88bc24' and ORIGIN_FUNCTION_SIGNATURE='0x8dbdbe6d'-- deposit to old one
and CONTRACT_ADDRESS='0x3d3f13f2529ec3c84b2940155effbf9b39a8f3ec'),
tb2 as (select
*
from ethereum.core.ez_token_transfers
where ORIGIN_TO_ADDRESS='0xae1fc3947ee83aeb3b7fec237bcc1d194c88bc24' and ORIGIN_FUNCTION_SIGNATURE='0xd1abb907'--withdraw from old one
and CONTRACT_ADDRESS='0x3d3f13f2529ec3c84b2940155effbf9b39a8f3ec'),
tb3 as (select
*
from ethereum.core.ez_token_transfers
where ORIGIN_TO_ADDRESS='0xef0881ec094552b2e128cf945ef17a6752b4ec5d' and ORIGIN_FUNCTION_SIGNATURE='0x8dbdbe6d'-- deposit to new one
and CONTRACT_ADDRESS='0x3d3f13f2529ec3c84b2940155effbf9b39a8f3ec')
select
'Deposit to Old contract' as type,
count(distinct ORIGIN_FROM_ADDRESS) as users,
sum(AMOUNT) as volume
from tb1
union all
select
'Deposit to new contract' as type,
count(distinct ORIGIN_FROM_ADDRESS) as users,
sum(AMOUNT) as volume
from tb3
union all
select
'withdraw from Old contract' as type,
count(distinct ORIGIN_FROM_ADDRESS) as users,
sum(AMOUNT) as volume
from tb2
union all
Run a query to Download Data