abcfy2task 4 analysis
    Updated 2024-10-15
    -- 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