Ali3NBy DEX & Pair PLSR Swap Pairs' Stats in Avalanche DEXs
    Updated 2025-04-04
    with pricet as (
    select date_trunc (day,block_timestamp) as day,
    '0x7a842193d291840fc38b45f991c5b8cc908f8a7c' as token_address,
    'PLSR' as symbol,
    '18' as decimals,
    avg (amount_in_usd/amount_out) as USDPrice
    from avalanche.defi.ez_dex_swaps
    where (symbol_in = 'WAVAX' or symbol_in ilike 'USDC')
    and (symbol_out = 'PLSR' or token_out = '0x7a842193d291840fc38b45f991c5b8cc908f8a7c')
    and block_timestamp >= '2025-02-05'
    group by 1,2,3,4 having USDPrice < 10

    union all

    select hour::date as day,
    token_address,
    'USDC' as symbol,
    decimals,
    avg (price) as usdprice
    from avalanche.price.ez_prices_hourly
    where token_address ilike '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E'
    group by 1,2,3,4),

    maindextable as (
    select block_timestamp,
    tx_hash,
    origin_from_address,
    case when platform ilike '%trader-joe%' then 'Trader Joe'
    when platform ilike '%uniswap%' then 'Uniswap'
    when platform ilike '%pharaoh%' then 'Pharaoh' else initcap(platform) end as dex,
    Token_In,
    symbol_in,
    Amount_In,
    Amount_In_USD,
    Token_Out,
    symbol_out,
    Last run: 12 days agoAuto-refreshes every 24 hours
    DEX
    TRADING_PAIR
    TX_COUNT
    TRADERS_COUNT
    TOTAL_TRADING_VOLUME
    TOTAL_USD_TRADING_VOLUME
    AVERAGE_TRADING_VOLUME
    AVERAGE_USD_TRADING_VOLUME
    1
    Trader JoeWAVAX => PLSR400901281651.0612756625025.52751.70150221414.67772434
    2
    PharaohWAVAX => PLSR3451144285484.59955775124937.412421.694491472362.137391304
    3
    PharaohPLSR => WAVAX4902215119568.50268393153463.5910448.098985069313.191
    4
    DexalotUSDC => PLSR188102910.5094719562218.9706072365717.25052622123.276144846
    5
    DexalotPLSR => USDC2410502857.8242709568302.29300193220952.409344623345.92887508
    6
    Trader JoePLSR => WAVAX4391391364892.902226229272.95748.29654727316.048766447
    6
    547B
    41s