MLDZMNyolo2- protocol fee2
    Updated 2025-02-07
    -- forked from yolo2- protocol fee @ https://flipsidecrypto.xyz/edit/queries/ac8adc6f-d458-41e2-800c-ebf640872bfd

    -- forked from yolo2 @ https://flipsidecrypto.xyz/edit/queries/d73954ca-d252-4e52-9db4-0d4785112f9e

    with tb1 as (select
    *
    from blast.core.ez_decoded_event_logs
    where CONTRACT_ADDRESS = lower('0x0000000000E14E87e5c80A8A90817308fFF715d3')
    and ORIGIN_FUNCTION_SIGNATURE in ('0x7d7c3c74','0x7d33ca3f') --fee payment
    )

    select
    BLOCK_TIMESTAMP::date as day,
    sum(amount) as "Volume ETH",
    sum(AMOUNT_USD) as "Volume USD",
    avg(AMOUNT_USD) as avg_volume
    from blast.core.ez_native_transfers
    where tx_hash in (select tx_hash from tb1)
    and to_address = lower('0x6b86fF7863e27d1C8CCf05dF9cB03b8eFaA52125')
    group by 1



    Last run: 3 months ago
    DAY
    Volume ETH
    Volume USD
    AVG_VOLUME
    1
    2024-04-19 00:00:00.0008.067824690.3945.055456204
    2
    2024-03-10 00:00:00.00022.367287904.26237.579081081
    3
    2024-03-29 00:00:00.00054.8843194306.19768.008656126
    4
    2024-04-04 00:00:00.00026.342288098.6168.127099237
    5
    2024-04-06 00:00:00.00027.797292748.5236.603316327
    6
    2024-03-11 00:00:00.00024.94699542.91317.015636943
    7
    2024-04-20 00:00:00.00011.937836770.9983.380929705
    8
    2024-04-26 00:00:00.00014.21644614.2880.822971014
    9
    2024-03-08 00:00:00.00022.032285996.27216.615289673
    10
    2024-04-24 00:00:00.00016.794654084.42135.890502513
    11
    2024-03-05 00:00:00.00020.98176829.55189.235344828
    12
    2024-04-08 00:00:00.00033.0066118194.9248.831368421
    13
    2024-04-25 00:00:00.00013.366742038.1598.913294118
    14
    2024-03-12 00:00:00.00026.3702105616.21354.416812081
    15
    2024-03-19 00:00:00.0006.49521250.0649.533939394
    16
    2024-03-06 00:00:00.00019.965275172.53198.869126984
    17
    2024-04-18 00:00:00.00014.881144914.4489.649580838
    18
    2024-03-24 00:00:00.00016.909257290.8125.637719298
    19
    2024-04-07 00:00:00.00034.5519117256.94303.774455959
    20
    2024-03-03 00:00:00.00023.287179925.27168.975200846
    65
    4KB
    51s