Flipside CommunityCross EVM Defi acquired users
    Updated 2025-02-04
    with acquired_eth_users_swap as
    (
    with acquired_eth_users AS
    (
    select 'ethereum' as chain , from_address, sum(1) as "yes" from ethereum.core.fact_transactions
    where 1=1
    -- and from_address in (lower('0x2c3C48dcFA3875b5D181033A5ffFe1584270462a'),lower('0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97'))
    and nonce =1
    and block_timestamp::date >= '2023-01-01' and block_timestamp::date < '2024-01-01'
    group by 1,2 )
    select distinct from_address,'ethereum' as chain, 1 as "yes" from acquired_eth_users nu inner join ethereum.defi.ez_dex_swaps sw
    on nu.from_address=sw.origin_from_address
    -- group by 1,2,3
    -- limit 5000
    ),

    acquired_poly_users_swap as
    (
    with acquired_poly_users AS
    (
    select 'polygon' as chain , from_address, sum(1) as "yes" from polygon.core.fact_transactions
    where 1=1
    -- and from_address in (lower('0x2c3C48dcFA3875b5D181033A5ffFe1584270462a'),lower('0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97'))
    and nonce =1
    and block_timestamp::date >= '2023-01-01' and block_timestamp::date < '2024-01-01'
    group by 1,2 )
    select distinct from_address,'polygon' as chain, 1 as "yes" from acquired_poly_users nu inner join polygon.defi.ez_dex_swaps sw
    on nu.from_address=sw.origin_from_address
    -- group by 1,2,3
    -- limit 5000
    ),
    acquired_opti_users_swap as
    (
    with acquired_opti_users AS
    (
    select 'optimism' as chain , from_address, sum(1) as "yes" from optimism.core.fact_transactions
    Last run: 3 months ago
    CHAINS
    NUMBER_OF_USERS
    1
    number of chains :641586
    2
    number of chains :21016248
    3
    number of chains :4329610
    4
    number of chains :3621106
    5
    number of chains :15257380
    6
    number of chains :5124585
    6
    188B
    190s