adriaparcerisaskittypunch StableCeler vs StableGate
    Updated 2025-05-05
    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,
    contract_address
    from flow.core_evm.fact_event_logs
    where contract_address in ('0x20ca5d1c8623ba6ac8f02e41ccaffe7bb6c92b57','0x073d6f03d1f1724f9daa11b7f61a45105607f88c')
    and topic_0='0x8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd97140'
    and tx_succeeded='TRUE'
    and origin_function_signature='0x3df02124'
    )
    select trunc (block_timestamp,'day') as date, case when contract_address='0x073d6f03d1f1724f9daa11b7f61a45105607f88c' then 'StableCeler'
    else 'StableGate' end as pool,
    count(distinct tx_hash) as swaps,
    sum(swaps) over (partition by pool order by date) as total_swaps,
    sum(token_amount) as volume_swapped,
    sum(volume_swapped) over (partition by pool 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,2 order by 1 desc, 2


    Last run: 6 days ago
    DATE
    POOL
    SWAPS
    TOTAL_SWAPS
    VOLUME_SWAPPED
    TOTAL_VOLUME_SWAPPED
    AVG_VOLUME_SWAPPED
    SWAPPERS
    1
    2025-05-26 00:00:00.000StableCeler46270763058.1521219539570.56226366.4815678481
    2
    2025-05-25 00:00:00.000StableCeler1532703010628.854239536512.41014269.469635491
    3
    2025-05-25 00:00:00.000StableGate471877798.38199914500222.50139619449.595499753
    4
    2025-05-24 00:00:00.000StableCeler97268776371.3103839525883.55591265.6836121961
    5
    2025-05-24 00:00:00.000StableGate271413071.13097514422424.1193976535.56548752
    6
    2025-05-23 00:00:00.000StableCeler2602678031678.2280189519512.245529121.8393385311
    7
    2025-05-23 00:00:00.000StableGate9712110570.37144214409352.98842212285.5968268893
    8
    2025-05-22 00:00:00.000StableCeler1162652014539.6481159487834.017511125.3417940951
    9
    2025-05-22 00:00:00.000StableGate970399733.44068414298782.6169811081.4934093333
    10
    2025-05-21 00:00:00.000StableCeler4012640425078.579429473294.36939662.5400983041
    11
    2025-05-21 00:00:00.000StableGate8694113707.50694514199049.17629614213.4383681252
    12
    2025-05-20 00:00:00.000StableCeler2092600317009.1654599448215.78997681.3835667892
    13
    2025-05-20 00:00:00.000StableGate9686636107.19785214085341.66935170678.5775391112
    14
    2025-05-19 00:00:00.000StableCeler1212579421254.8470169431206.624517175.6598926941
    15
    2025-05-19 00:00:00.000StableGate9677116630.18773213449234.47149912958.9097484
    16
    2025-05-18 00:00:00.000StableCeler3132567327594.4475529409951.77750188.1611742881
    17
    2025-05-18 00:00:00.000StableGate12668126854.96993313332604.28376710571.2474944172
    18
    2025-05-17 00:00:00.000StableCeler822536010356.0514259382357.329949126.2933100611
    19
    2025-05-17 00:00:00.000StableGate4656158746.84948613205749.31383439686.71237153
    20
    2025-05-16 00:00:00.000StableCeler92252789544.9805269372001.278524103.7497883261
    ...
    216
    20KB
    3s