Moetot sush un - uni
    Updated 2022-10-16
    (with base as (select ADDRESS from polygon.core.dim_labels
    where
    PROJECT_NAME ilike '%uniswap%')

    select
    date_trunc(week, block_timestamp) as weeks,
    count(DISTINCT tx_hash) as txs,
    sum(txs)over( order by weeks rows between unbounded preceding and current row ) as cum_txs,
    count(DISTINCT from_address) as wallets,
    sum(wallets)over( order by weeks rows between unbounded preceding and current row ) as cum_wallets,
    'Uniswap on Polygon' as type
    from polygon.core.fact_transactions t
    left join polygon.core.dim_labels l on t.to_address = l.address
    where

    to_address in (select address from base)
    group by 1)
    union all
    (with base as (select ADDRESS from arbitrum.core.dim_labels
    where
    PROJECT_NAME ilike '%uniswap%')

    select
    date_trunc(week, block_timestamp) as weeks,

    count(DISTINCT tx_hash) as txs,
    sum(txs)over( order by weeks rows between unbounded preceding and current row ) as cum_txs,
    count(DISTINCT from_address) as wallets,
    sum(wallets)over( order by weeks rows between unbounded preceding and current row ) as cum_wallets,
    'Uniswap on Arbitrum' as type
    from arbitrum.core.fact_transactions t
    Run a query to Download Data