adriaparcerisasTop 10 wallets of CEL transfers
Updated 2022-07-29
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
›
⌄
-- What are the top addresses swapping and transferring CEL?
-- How have the CEL swap volumes changed over the past 90 days?
-- How are Celsius wallets interacting with the CEL token?
WITH
transfers as (
SELECT
distinct origin_from_address as wallets,
sum(raw_amount/pow(10,decimals)) as tokens_transferred
from ethereum.core.fact_token_transfers x
join ethereum.core.dim_contracts y on x.contract_address=y.address
where contract_address='0xaaaebe6fe48e54f431b0c390cfaf0b017d09d42d' and block_timestamp>=CURRENT_DATE-90
group by 1
),
swaps_in as (
SELECT
distinct origin_to_address as wallets,
sum(amount_in) as tokens_acquired
from ethereum.core.ez_dex_swaps where token_in='0xaaaebe6fe48e54f431b0c390cfaf0b017d09d42d' and block_timestamp>=CURRENT_DATE-90
group by 1
),
swaps_out as (
SELECT
distinct origin_from_address as wallets,
sum(amount_out) as tokens_sold
from ethereum.core.ez_dex_swaps where token_out='0xaaaebe6fe48e54f431b0c390cfaf0b017d09d42d' and block_timestamp>=CURRENT_DATE-90
group by 1
)
SELECT
* from transfers order by 2 desc limit 10
Run a query to Download Data