i_danPharaoh: V1 vs V2 Weekly
    Updated 2025-03-10
    SELECT
    date_trunc('week', block_timestamp) AS "Week"
    , CASE WHEN platform = 'pharaoh-v1' THEN 'V1' ELSE 'V2' END AS "Version"
    , Count(*) AS "Transactions"
    , SUM("Transactions") OVER (ORDER BY "Week") AS "Cummulative Transactions"
    , Count(DISTINCT origin_from_address) AS "Swappers"
    , SUM(CASE WHEN amount_in_usd IS NOT NULL AND amount_out_usd IS NOT NULL THEN (amount_in_usd+amount_out_usd)/2
    WHEN amount_in_usd IS NULL THEN amount_out_usd ELSE amount_in_usd END) AS "Volume"
    , SUM("Volume") OVER (ORDER BY "Week") AS "Cummulative Volume"
    , COUNT(DISTINCT symbol) AS "Assets"
    FROM (
    SELECT
    block_timestamp
    , platform
    , symbol_in AS symbol
    , origin_from_address
    , pool_name
    , amount_in_usd
    , amount_out_usd
    FROM avalanche.defi.ez_dex_swaps
    WHERE platform LIKE '%pharaoh%'
    UNION ALL
    SELECT
    block_timestamp
    , platform
    , symbol_out AS symbol
    , origin_from_address
    , pool_name
    , amount_in_usd
    , amount_out_usd
    FROM avalanche.defi.ez_dex_swaps
    WHERE platform LIKE '%pharaoh%'
    )
    GROUP BY 1, 2
    Last run: 23 days ago
    Week
    Version
    Transactions
    Cummulative Transactions
    Swappers
    Volume
    Cummulative Volume
    Assets
    1
    2025-03-10 00:00:00.000V1646867141903072971006.3112425485224.1729
    2
    2025-03-10 00:00:00.000V2159986714190108530717221.1212425485224.1742
    3
    2025-03-03 00:00:00.000V12061106691724472792253015.512391796996.7463
    4
    2025-03-03 00:00:00.000V2409002669172413481596589517.0412391796996.7470
    5
    2025-02-24 00:00:00.000V11471026076612461292545613.8711702954464.254
    6
    2025-02-24 00:00:00.000V232495460766129531524024914.0911702954464.259
    7
    2025-02-17 00:00:00.000V116490056045564233112797727.3611086383936.2459
    8
    2025-02-17 00:00:00.000V230091256045569808460973298.4511086383936.2466
    9
    2025-02-10 00:00:00.000V118503651387445632162211331.5310512612910.4359
    10
    2025-02-10 00:00:00.000V2314764513874412485523433544.6910512612910.4359
    11
    2025-02-03 00:00:00.000V2347088463894411744491238576.339826968034.2157
    12
    2025-02-03 00:00:00.000V111951446389444997133707852.329826968034.2156
    13
    2025-01-27 00:00:00.000V2323662417234217056583330016.259202021605.5669
    14
    2025-01-27 00:00:00.000V17448441723421450458040056.289202021605.5656
    15
    2025-01-20 00:00:00.000V1444203774196232630537969.88560651533.0350
    16
    2025-01-20 00:00:00.000V227268837741968036526337618.678560651533.0359
    17
    2025-01-13 00:00:00.000V1291543457088198525114335.978003775944.5646
    18
    2025-01-13 00:00:00.000V225568834570888621557461426.38003775944.5654
    19
    2025-01-06 00:00:00.000V219514031722465922380584398.927421200182.2958
    20
    2025-01-06 00:00:00.000V1402231722464381077551.917421200182.2940
    ...
    128
    10KB
    4s