zakkisyed7.Curve stable coin pools - number of users
    Updated 2022-01-08
    select
    -- count (distinct(
    count (distinct (e1.from_address)), date_trunc('day', e1.block_timestamp) as dayz
    --))
    --e2.pool_name, e2.platform
    from
    (
    select *
    from (

    select distinct(from_address), block_timestamp
    from ethereum.udm_events
    where contract_address = '0xd533a949740bb3306d119cc777fa900ba034cd52'
    --group by 1
    order by 2 desc
    )
    where block_timestamp >= CURRENT_DATE - 90
    --group by 1
    --order by 1 desc

    ) as e1
    INNER JOIN ethereum.dex_swaps as e2
    ON e1.from_address = e2.from_address

    where e2.platform = 'curve'
    and e2.pool_name = 'EURS-USDC Curve LP' --selecting stablecoin pools
    OR pool_name = 'USDC-EURS Curve LP'
    OR pool_name = 'USDT-USDC-MIM-DAI Curve LP'
    OR pool_name = 'USDT-MIM-USDC-DAI Curve LP'
    OR pool_name = 'USDC-MIM-DAI-USDT Curve LP'
    OR pool_name = 'DAI-USDT-USDC-MIM Curve LP'
    OR pool_name = 'MIM-USDC-USDT-DAI Curve LP'
    OR pool_name = 'FRAX-DAI-USDT-USDC Curve LP'
    OR pool_name = 'sEUR-0xc581b735a1688071a1746c968e0798d642ede491 Curve LP' --sEUR - EURT
    OR pool_name = '0xc581b735a1688071a1746c968e0798d642ede491-sEUR Curve LP' -- EURT - sEUR
    OR pool_name = 'USDC-DAI-0xc581b735a1688071a1746c968e0798d642ede491-USDT Curve LP'
    Run a query to Download Data