MLDZMNoptimism- fee
    Updated 2025-04-07
    with date_initial as (
    select
    DATE_DAY as day,
    from ethereum.core.dim_dates
    where day>= '2024-03-17'
    and day <= current_date
    ),

    amount_in_lp as (
    select
    date_trunc('day', BLOCK_TIMESTAMP) as dt,
    sum(RAW_AMOUNT)/1e18 as amount_lp
    from optimism.core.ez_token_transfers
    where contract_address = lower('0x5bb3e58887264b667f915130fd04bbb56116c278')
    and FROM_ADDRESS = '0x0000000000000000000000000000000000000000'
    and TO_ADDRESS != '0x0000000000000000000000000000000000000000'
    group by 1),

    amount_out_lp as (
    select date_trunc('day',BLOCK_TIMESTAMP) as dt,
    -1*(sum(RAW_AMOUNT)/1e18)as amount_lp
    from optimism.core.ez_token_transfers
    where
    contract_address = lower('0x5bb3e58887264b667f915130fd04bbb56116c278')
    and FROM_ADDRESS != '0x0000000000000000000000000000000000000000'
    and TO_ADDRESS = '0x0000000000000000000000000000000000000000'
    group by 1),

    daily_liquidity as (
    select * from amount_in_lp
    union all
    select * from amount_out_lp
    ),

    total_supply as (
    select
    Last run: 14 days agoAuto-refreshes every 12 hours
    DAY
    TOTAL_FEES
    CUMULATIVE_FEES
    VOLUME
    NUMBER_OF_TRANSACTIONS
    OWNERSHIP_RATIO
    PROTOCOL_EARNED_FEES
    EXTERNAL_EARNED_FEES
    CUMULATIVE_PROTOCOL_EARNED_FEES
    CUMULATIVE_EXTERNAL_FEES
    1
    2025-04-07 00:00:00.00004618.44000.8701705564004018.830504523599.609495477
    2
    2025-04-06 00:00:00.0007.044618.442345.3320.87017055646.1260007170.91399928294018.830504523599.609495477
    3
    2025-04-05 00:00:00.00004611.4000.8701705564004012.704503806598.695496194
    4
    2025-04-04 00:00:00.0000.074611.423.510.87017055640.060911938950.0090880610524012.704503806598.695496194
    5
    2025-04-03 00:00:00.00017.164611.335719.1130.870170556414.9321267482.2278732524012.643591867598.686408133
    6
    2025-04-02 00:00:00.00012.834594.174278.1110.870170556411.1642882391.6657117613997.711465119596.458534881
    7
    2025-04-01 00:00:00.00004581.34000.8701705564003986.547176881594.792823119
    8
    2025-03-31 00:00:00.00004581.34000.8701705564003986.547176881594.792823119
    9
    2025-03-30 00:00:00.00004581.34000.8701705564003986.547176881594.792823119
    10
    2025-03-29 00:00:00.00004581.34000.8701705564003986.547176881594.792823119
    11
    2025-03-28 00:00:00.0001.254581.34417.4150.87017055641.0877131960.16228680453986.547176881594.792823119
    12
    2025-03-27 00:00:00.00004580.09000.8701705564003985.459463685594.630536315
    13
    2025-03-26 00:00:00.00004580.09000.8701705564003985.459463685594.630536315
    14
    2025-03-25 00:00:00.00004580.09000.8701705564003985.459463685594.630536315
    15
    2025-03-24 00:00:00.00004580.09000.8701705564003985.459463685594.630536315
    16
    2025-03-23 00:00:00.00004580.09000.8701705564003985.459463685594.630536315
    17
    2025-03-22 00:00:00.0001.814580.09603.1610.87017055641.5750087070.23499129293985.459463685594.630536315
    18
    2025-03-21 00:00:00.00004578.28010.8701705564003983.884454978594.395545022
    19
    2025-03-20 00:00:00.00004578.28000.8701705564003983.884454978594.395545022
    20
    2025-03-19 00:00:00.0000.334578.28108.7520.87017055640.28715628360.042843716393983.884454978594.395545022
    ...
    387
    40KB
    148s