adriaparcerisaskittypunch StableGate
    Updated 2025-06-02
    with info as (
    select
    origin_from_address,
    tx_hash,
    block_timestamp,
    utils.udf_hex_to_int(SUBSTR(data, 67, 64))/POW(10,6) as token_amount
    from flow.core_evm.fact_event_logs
    where contract_address='0x20ca5d1c8623ba6ac8f02e41ccaffe7bb6c92b57'
    and topic_0='0x8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd97140'
    and tx_succeeded='TRUE'
    and origin_function_signature='0x3df02124'
    )
    select trunc (block_timestamp,'day') as date,
    count(distinct tx_hash) as swaps,
    sum(swaps) over (order by date) as total_swaps,
    sum(token_amount) as volume_swapped,
    sum(volume_swapped) over (order by date) as total_volume_swapped,
    avg(token_amount) as avg_volume_swapped,
    count(distinct origin_from_address) as swappers
    from info
    group by 1 order by 1 desc

    Last run: 15 days ago
    DATE
    SWAPS
    TOTAL_SWAPS
    VOLUME_SWAPPED
    TOTAL_VOLUME_SWAPPED
    AVG_VOLUME_SWAPPED
    SWAPPERS
    1
    2025-06-02 00:00:00.0001749583014871371.66385558301
    2
    2025-06-01 00:00:00.000374828463.26258314865541.6638559487.7541943333
    3
    2025-05-31 00:00:00.000474546667.46794714837078.40127211666.866986752
    4
    2025-05-30 00:00:00.000674177332.33926714790410.93332512888.7232111673
    5
    2025-05-29 00:00:00.000873598877.94520614713078.59405812359.743150754
    6
    2025-05-28 00:00:00.000372741270.78744114614200.64885213756.9291471
    7
    2025-05-27 00:00:00.000572458438.12743114572929.86141111687.62548622
    8
    2025-05-26 00:00:00.000171914269.23258414514491.7339814269.2325841
    9
    2025-05-25 00:00:00.000471877798.38199914500222.50139619449.595499753
    10
    2025-05-24 00:00:00.000271413071.13097514422424.1193976535.56548752
    11
    2025-05-23 00:00:00.0009712110570.37144214409352.98842212285.5968268893
    12
    2025-05-22 00:00:00.000970399733.44068414298782.6169811081.4934093333
    13
    2025-05-21 00:00:00.0008694113707.50694514199049.17629614213.4383681252
    14
    2025-05-20 00:00:00.0009686636107.19785214085341.66935170678.5775391112
    15
    2025-05-19 00:00:00.0009677116630.18773213449234.47149912958.9097484
    16
    2025-05-18 00:00:00.00012668126854.96993313332604.28376710571.2474944172
    17
    2025-05-17 00:00:00.0004656158746.84948613205749.31383439686.71237153
    18
    2025-05-16 00:00:00.000565245752.82593313047002.4643489150.56518662
    19
    2025-05-15 00:00:00.00014647284391.06927413001249.63841520313.6478052863
    20
    2025-05-14 00:00:00.0007633109286.0244112716858.56914115612.2892014292
    ...
    114
    9KB
    42s