abcfy2task 4 analysis
Updated 2024-10-15Copy Reference Fork
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
›
⌄
-- forked from task 1 analysis @ https://flipsidecrypto.xyz/studio/queries/708728ab-9fa8-4691-ac32-da132e2ea861
with wallets as (
with ethereum_sln_holders as (
select
user_address wallet,
current_bal sln
from
ethereum.core.ez_current_balances
where
contract_address = LOWER('0xDb82c0d91E057E05600C8F8dc836bEb41da6df14')
),
polygon_sln_holders as (
select
sln_in.wallet wallet,
ZEROIFNULL(sln_in.amount) - ZEROIFNULL(sln_out.amount) sln
from
(
select
to_address wallet,
sum(amount) amount
from
polygon.core.ez_token_transfers
where
contract_address = LOWER('0x1Fe78e67Ad10ba3a9583e672Cac0480737D1B9f7')
group by
to_address
) sln_in
left join (
select
from_address wallet,
sum(amount) amount
from
polygon.core.ez_token_transfers
where
contract_address = LOWER('0x1Fe78e67Ad10ba3a9583e672Cac0480737D1B9f7')
group by
QueryRunArchived: QueryRun has been archived