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

    amount_in_lp as (
    select
    date_trunc('day', BLOCK_TIMESTAMP) as dt,
    sum(RAW_AMOUNT)/1e18 as amount_lp
    from base.core.ez_token_transfers
    where contract_address = lower('0x5332584890D6E415a6dc910254d6430b8aaB7E69')
    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 base.core.ez_token_transfers
    where
    contract_address = lower('0x5332584890D6E415a6dc910254d6430b8aaB7E69')
    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: 17 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.000027784.86000.91549892130025437.0093581312347.850641869
    2
    2025-04-06 00:00:00.00031.9827784.8610660.891700.915498921329.2776555032.70234449725437.0093581312347.850641869
    3
    2025-04-05 00:00:00.0003.3627752.881119.14190.91549892133.0760763760.283923624525407.7317026292345.148297371
    4
    2025-04-04 00:00:00.00017.627749.525866.511380.915498921316.1127810151.48721898525404.6556262532344.864373747
    5
    2025-04-03 00:00:00.00018.7927731.926263.231110.915498921317.2022247311.58777526925388.5428452382343.377154762
    6
    2025-04-02 00:00:00.00057.4127713.1319138.111660.915498921352.5587930714.85120692925371.3406205072341.789379493
    7
    2025-04-01 00:00:00.00010.1827655.723393.17760.91549892139.3197790190.860220981325318.7818274362336.938172564
    8
    2025-03-31 00:00:00.00012.6827645.544227.581240.915498921311.6085263221.07147367825309.4620484182336.077951582
    9
    2025-03-30 00:00:00.00011.8427632.863946.98930.915498921310.8395072281.00049277225297.8535220962335.006477904
    10
    2025-03-29 00:00:00.0009.5127621.023169.24850.91549892138.7063947410.803605258625287.0140148682334.005985132
    11
    2025-03-28 00:00:00.00034.9527611.5111650.74710.915498921331.9966872992.95331270125278.3076201262333.202379874
    12
    2025-03-27 00:00:00.0006.7227576.562241.47510.91549892136.1521527510.567847248925246.3109328272330.249067173
    13
    2025-03-26 00:00:00.0009.6727569.843222.51640.91549892138.8528745690.817125431125240.1587800762329.681219924
    14
    2025-03-25 00:00:00.0008.0827560.172694.95550.91549892137.3972312840.68276871625231.3059055072328.864094493
    15
    2025-03-24 00:00:00.00012.8527552.094282.931080.91549371611.7640942511.08590574925223.7652579782328.324742022
    16
    2025-03-23 00:00:00.0004.7527539.241583.39180.9154937164.3485951510.401404848925212.0011637282327.238836272
    17
    2025-03-22 00:00:00.0003.2427534.491080.33270.9154937162.966199640.273800360125207.6525685772326.837431423
    18
    2025-03-21 00:00:00.0004.327531.251434.85410.9154937163.9366229790.363377021225204.6863689372326.563631063
    19
    2025-03-20 00:00:00.00015.3727526.955121.92970.91549371614.0711384151.29886158525200.7497459582326.200254042
    20
    2025-03-19 00:00:00.00021.6227511.587207.811080.91549371619.792974141.8270258625186.6786075432324.901392457
    ...
    376
    42KB
    158s