Skip to content

Commit

Permalink
C911: fixing mantle new and returning (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebMelendez01 authored Dec 4, 2024
1 parent 73c291e commit 67954df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions macros/metrics/get_fundamental_data_for_chain.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
new_users as (
select
count(distinct from_address) as new_users,
date_trunc('day', start_timestamp) as start_date
start_timestamp::date as start_date
from min_date
group by start_date
),
{% if chain not in ("starknet") %}
bot as (
select
raw_date,
raw_date::date as raw_date,
count(distinct from_address) as low_sleep_users,
count(*) as tx_n
from {{ chain }}.prod_raw.ez_transactions
Expand All @@ -24,7 +24,7 @@
),
sybil as (
select
raw_date,
raw_date::date as raw_date,
engagement_type,
count(distinct from_address) as sybil_users,
count(*) as tx_n
Expand All @@ -35,7 +35,7 @@
{% endif %}
chain_agg as (
select
raw_date as date,
raw_date::date as date,
max(chain) as chain,
{% if chain not in ("starknet") %} --Starknet allows for multiple types of tokens to be used for gas
sum(tx_fee) fees_native,
Expand Down
2 changes: 2 additions & 0 deletions models/projects/mantle/core/ez_mantle_metrics.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ select
, dau
, wau
, mau
, new_users
, returning_users
, fees
, fees_native
, l1_data_cost
Expand Down

0 comments on commit 67954df

Please sign in to comment.