Afonso_DiazOvertime
    Updated 2025-04-03
    with

    pricet as (
    select
    hour::date as date,
    symbol,
    decimals,
    token_address,
    avg(price) as token_price_usd
    from
    boba.price.ez_prices_hourly
    group by 1, 2, 3, 4

    union all

    select
    hour::date as date,
    'ETH',
    decimals,
    '0x0000000000000000000000000000000000000000',
    avg(price)
    from
    boba.price.ez_prices_hourly
    where
    token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
    group by 1, 2, 3, 4
    ),

    swaps as (

    select
    tx_hash,
    block_timestamp,
    nvl(decoded_log:receiver, origin_from_address) as swapper,
    decoded_log:fromAmount as amount_in_unadj,
    decoded_log:toAmount as amount_out_unadj,
    Last run: 30 days ago
    DATE
    SWAPS
    SWAPPERS
    VOLUME_USD
    AVERAGE_AMOUNT_USD
    1
    2024-04-01 00:00:00.0001481021680.90813646311.434749228
    2
    2024-05-01 00:00:00.000122644143.04267009834.525355584
    3
    2024-06-01 00:00:00.00069392694.8476705439.055763341
    4
    2024-07-01 00:00:00.000141245.465833363.247559526
    5
    2024-08-01 00:00:00.000232221.0146371080.9552107776
    6
    2024-09-01 00:00:00.0002724413.40979102717.225407959
    7
    2024-10-01 00:00:00.0002720299.36732884412.473638702
    8
    2024-11-01 00:00:00.0002522201.1619262638.381746928
    9
    2024-12-01 00:00:00.000302232.5827356361.55155884
    10
    2025-01-01 00:00:00.00074461331.52196065124.657814086
    11
    2025-02-01 00:00:00.00062441870.33065625732.812818531
    12
    2025-03-01 00:00:00.00078541532.53924324821.285267267
    13
    2025-04-01 00:00:00.0001010388.64477908938.864477909
    13
    794B
    1s