elsina✅ Development: contracts with the most unique user
    Updated 2023-04-20
    select
    case when project_name ilike '%astroport%' then 'Astroport' when project_name ilike '%valkyrie%' then 'valkyrie' else project_name end as "Contract Name",
    count(distinct tx_sender) as "Unique user"
    from terra.core.fact_transactions left join terra.core.dim_address_labels on tx:body:messages[0]:contract = address
    where
    tx_succeeded = 'TRUE' and
    "Contract Name" is not null
    group by 1 having "Unique user" > 100
    Run a query to Download Data