MLDZMNEthereum- fee
    Updated 9 days ago
    with date_initial as (
    select
    DATE_DAY as day,
    from ethereum.core.dim_dates
    where day>= '2023-07-12'
    and day <= current_date
    ),

    amount_in_lp as (
    select
    date_trunc('day', BLOCK_TIMESTAMP) as dt,
    sum(RAW_AMOUNT)/1e18 as amount_lp
    from ethereum.core.ez_token_transfers
    where contract_address = lower('0x09D1d767eDF8Fa23A64C51fa559E0688E526812F')
    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 ethereum.core.ez_token_transfers
    where
    contract_address = lower('0x09D1d767eDF8Fa23A64C51fa559E0688E526812F')
    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: 9 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-15 00:00:00.00030.82628714.4110265.37200.999598402130.7876307850.012369215442627658.723802921055.686197078
    2
    2025-04-14 00:00:00.00096.282628683.6132093.42590.999598402196.2413341540.038665846192627627.936172141055.673827863
    3
    2025-04-13 00:00:00.000198.912628587.3366301.81700.9995984021198.8301181610.079881839072627531.694837981055.635162017
    4
    2025-04-12 00:00:00.000129.392628388.4243129.62620.9995984021129.3380372470.051962752792627332.864719821055.555280177
    5
    2025-04-11 00:00:00.000192.312628259.0364103.35480.9995984021192.2327687070.07723129292627203.526682571055.503317425
    6
    2025-04-10 00:00:00.000267.472628066.7289158.28430.9995984021267.3625846090.10741539142627011.293913871055.426086132
    7
    2025-04-09 00:00:00.000398.042627799.25132680.59780.9995984021397.880147970.15985202972626743.931329261055.31867074
    8
    2025-04-08 00:00:00.000350.042627401.21116681.35740.9995984021349.899424670.14057533032626346.051181291055.158818711
    9
    2025-04-07 00:00:00.000184.872627051.1761623.76660.9995984021184.7957565960.07424340452625996.151756621055.01824338
    10
    2025-04-06 00:00:00.000190.732626866.363577.93630.9995984021190.6534032320.076596768222625811.356000021054.943999976
    11
    2025-04-05 00:00:00.00014.322626675.574772.4200.999598402114.3142491180.0057508819842625620.702596791054.867403208
    12
    2025-04-04 00:00:00.000162.672626661.2554224.26770.9995984021162.6046720690.065327931032625606.388347671054.861652326
    13
    2025-04-03 00:00:00.000134.532626498.5844842.94520.9995984021134.4759730340.054026966022625443.78367561054.796324395
    14
    2025-04-02 00:00:00.000797.442626364.05265812.221040.9995984021797.1197497670.32025023252625309.307702571054.742297429
    15
    2025-04-01 00:00:00.00098.862625566.6132954.03370.999598402198.8202980310.039701968782624512.18795281054.422047196
    16
    2025-03-31 00:00:00.00066.572625467.7522191.11350.999598402166.5432656280.026734372462624413.367654771054.382345227
    17
    2025-03-30 00:00:00.00065.92625401.1821967.39180.999598402165.8735346980.026465301872624346.824389141054.355610855
    18
    2025-03-29 00:00:00.00061.442625335.2820479.44400.999598402161.4153258250.024674175222624280.950854451054.329145553
    19
    2025-03-28 00:00:00.00081.692625273.8427228.46500.999598402181.6571934670.032806532772624219.535528621054.304471378
    20
    2025-03-27 00:00:00.00030.082625192.1510027.02280.999598402130.0679199350.012080064952624137.878335151054.271664845
    ...
    644
    82KB
    113s