zakkisyedNew Curve User actions - last 90 days
    Updated 2022-01-08
    select
    -- count (distinct(
    count (distinct (e1.from_address)), e2.function_name
    --))
    --e2.pool_name, e2.platform
    from
    (
    select *
    from (

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

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

    where e2.to_label = 'curve fi'
    and e2.function_name != 'approve'


    group by 2

    --where e2.contract_address = '0xd533a949740bb3306d119cc777fa900ba034cd52'
    --and e2.event_name = 'Transfer'
    --e2.platform = 'curve'

    Run a query to Download Data