lindyyhighly_engaged _users
    Updated 2025-02-21
    --with AERODROME_ACTIVITIES AS
    --(
    --SELECT
    --BLOCK_TIMESTAMP :: date AS date,
    --count ( DISTINCT TX_HASH) as aero_swap,
    --count ( DISTINCT ORIGIN_FROM_ADDRESS) as active_users,
    --sum(AMOUNT_IN_USD) as total_volume
    --from base.defi.ez_dex_swaps
    --where
    --BLOCK_TIMESTAMP :: date >= '2024-01-01'
    --and PLATFORM = 'aerodrome'
    --group by date
    --)
    --SELECT
    --date,
    --aero_swap,
    --active_users,
    --total_volume
    --from
    --AERODROME_ACTIVITIES
    --where aero_swap >1
    --order by
    --date desc
    --;
    WITH AERODROME_ACTIVITIES AS
    (
    SELECT
    date_trunc('day', BLOCK_TIMESTAMP) AS day,
    ORIGIN_FROM_ADDRESS,
    count(DISTINCT TX_HASH) AS aero_swaps
    FROM
    base.defi.ez_dex_swaps
    WHERE
    BLOCK_TIMESTAMP >= '2024-01-01'
    AND PLATFORM = 'aerodrome'
    GROUP BY
    Last run: 2 months ago
    DAY
    ACTIVE_USERS
    TOTAL_AERO_SWAPS
    1
    2025-02-20 00:00:00.0003798101408
    2
    2025-02-19 00:00:00.0003042104261
    3
    2025-02-18 00:00:00.0003569123125
    4
    2025-02-17 00:00:00.0003256117890
    5
    2025-02-16 00:00:00.0002478112964
    6
    2025-02-15 00:00:00.0002620104401
    7
    2025-02-14 00:00:00.000308693584
    8
    2025-02-13 00:00:00.000364980284
    9
    2025-02-12 00:00:00.0003537102070
    10
    2025-02-11 00:00:00.000373895088
    11
    2025-02-10 00:00:00.0003761119075
    12
    2025-02-09 00:00:00.0003278118554
    13
    2025-02-08 00:00:00.0003107109958
    14
    2025-02-07 00:00:00.0003805120575
    15
    2025-02-06 00:00:00.0004223119885
    16
    2025-02-05 00:00:00.0003771139986
    17
    2025-02-04 00:00:00.0003875113151
    18
    2025-02-03 00:00:00.0005857152613
    19
    2025-02-02 00:00:00.0004833126672
    20
    2025-02-01 00:00:00.0004154104845
    ...
    417
    16KB
    8s