Afonso_DiazBy platform
    Updated 2025-05-18
    with

    main as (
    select
    tx_hash,
    block_timestamp,
    trader as swapper,
    platform,
    symbol_in,
    symbol_out,
    nvl(amount_in_usd, amount_out_usd) as amount_usd
    from
    near.defi.ez_dex_swaps
    where
    block_timestamp between '{{ start_date }}' and '{{ end_date }}'
    and 'wrap.near' in (token_in_contract, token_out_contract)
    and amount_usd < 1e6

    )

    select
    platform,
    count(distinct tx_hash) as swaps,
    count(distinct swapper) as swappers,
    sum(amount_usd) as volume_usd,
    avg(amount_usd) as average_amount_usd
    from
    main
    group by 1

    Last run: 16 days ago
    PLATFORM
    SWAPS
    SWAPPERS
    VOLUME_USD
    AVERAGE_AMOUNT_USD
    1
    v1.jumbo_exchange.near5968727691660254.4315097822.637775177
    2
    dex.thundercontract.near45840.3105390360.8957897564
    3
    v2.ref-finance.near1628178910515631242897936.751866.0118618
    4
    ref.marior.near121414.55829434.5465245
    4
    244B
    680s