cloudr3n2024-04-21 01:45 PM
Updated 2024-04-21
999
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 memecoin_deposit as (
-- get user who had a deposit transaction before (not necessary currently staked)
select
block_timestamp,
symbol,
contract_address,
--sum(amount) as total_staked,
origin_from_address
from
avalanche.core.ez_token_transfers
where
to_address = '0xb22c6d1c2897b950fc1040913c0d84d788f24df2'
union all
select
block_timestamp,
'KINGSHIT' as symbol,
contract_address,
--sum(decoded_log:amount)*pow(10,-18) as total_staked,
origin_from_address
from
avalanche.core.ez_decoded_event_logs
where
contract_address=lower('0x05b0def5c00ba371683d7035934bcf82b737c364')
and event_name='ERC20Transfer'
and decoded_log:to='0xb22c6d1c2897b950fc1040913c0d84d788f24df2'
),
user_deposit as (
select
origin_from_address,
count(distinct contract_address) as pool_deposited,
min(date(block_timestamp)) as first_deposit
from
memecoin_deposit
group by
QueryRunArchived: QueryRun has been archived