BlockTrackerswap pairs
    Updated 2025-03-02
    with uniswap_V2 as (
    with pool_created as (
    select
    contract_address,
    REGEXP_SUBSTR_ALL(SUBSTR(data, 3, len(data)), '.{64}') as segmented_data,
    lower('0x' || substr(topics[1]::string, 27, 40) :: string) as token0,
    lower('0x' || substr(topics[2]::string, 27, 40) :: string) as token1,
    lower('0x' || substr(segmented_data[0]::string, 25, 40 ) :: string) as pool_address
    from boba.core.fact_event_logs
    WHERE topics[0] = '0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9'
    and TX_SUCCEEDED
    )
    ,
    swap as (
    select
    block_timestamp,
    block_number,
    origin_from_address,
    origin_to_address,
    ORIGIN_FUNCTION_SIGNATURE,
    tx_hash,
    event_index,
    contract_address,
    lower('0x' || substr(topics[1]::string, 27, 40) :: string) as sender,
    lower('0x' || substr(topics[2]::string, 27, 40) :: string) as address_to,
    REGEXP_SUBSTR_ALL(SUBSTR(data, 3, len(data)), '.{64}') as segmented_data,
    livequery.utils.udf_hex_to_int(segmented_data[0]::string) :: int as amount0In,
    livequery.utils.udf_hex_to_int(segmented_data[1]::string) :: int as amount1In,
    livequery.utils.udf_hex_to_int(segmented_data[2]::string) :: int as amount0Out,
    livequery.utils.udf_hex_to_int(segmented_data[3]::string) :: int as amount1Out
    from boba.core.fact_event_logs
    where topics[0]::string = '0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822'
    and TX_SUCCEEDED
    )

    , result as (
    Last run: 17 days ago
    DATE
    PAIRS
    N_SWAPS
    CUM_SWAPS
    VOLUME_USD
    CUMULATIVE_VOLUME_P
    AVG_VOLUME_USD
    1
    2025-03-01 00:00:00.000USDC -- WETH12516924.997925198236556.0204174.997925
    2
    2025-03-01 00:00:00.000BOBA -- WETH3251692336.776334276107805537.762805112.258778092
    3
    2025-03-01 00:00:00.000WETH -- BOBA2251692291.071355861108028605.079274145.53567793
    4
    2025-02-01 00:00:00.000OLO -- WETH425168642811335.7915758
    5
    2025-02-01 00:00:00.000USDC -- WETH5251686155.36539926198236551.02249231.073079852
    6
    2025-02-01 00:00:00.000OLO -- USDC12516860.12623097212890344.744295240.1262309721
    7
    2025-02-01 00:00:00.000OMG -- WETH325168611.93281208325671806.9593493.977604028
    8
    2025-02-01 00:00:00.000WETH -- BOBA627251686118075.199646722108028314.007918188.317702786
    9
    2025-02-01 00:00:00.000BOBA -- USDC12516864.5838420911640011.712607984.583842091
    10
    2025-02-01 00:00:00.000USDC -- OLO1251686111833502.9077322711
    11
    2025-02-01 00:00:00.000BOBA -- OLO12516865.7409954496562033.311718515.740995449
    12
    2025-02-01 00:00:00.000WETH -- USDC2251686134.763963612203219267.87199667.381981806
    13
    2025-02-01 00:00:00.000WETH -- OLO125168633957916.0278445
    14
    2025-02-01 00:00:00.000USDC -- OMG12516860.12623097216186.7311535830.1262309721
    15
    2025-02-01 00:00:00.000BOBA -- WETH711251686118025.019416486107805200.986471165.998620839
    16
    2025-02-01 00:00:00.000USDT -- WETH125168651.27309743734044341.856449451.273097437
    17
    2025-01-01 00:00:00.000USDC -- BOBA22503270.52305762331496854.612386690.2615288117
    18
    2025-01-01 00:00:00.000USDC -- WETH525032740.637741512198236395.6570928.127548302
    19
    2025-01-01 00:00:00.000USDT -- USDC22503273.829526557358.8718890771.914763279
    20
    2025-01-01 00:00:00.000USDC -- DAI22503274.576588176.6787829462.288294
    ...
    2033
    183KB
    11s