adriaparcerisaskittypunch StableCeler vs StableGate
    Updated 10 hours ago
    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: about 10 hours ago
    DATE
    POOL
    SWAPS
    TOTAL_SWAPS
    VOLUME_SWAPPED
    TOTAL_VOLUME_SWAPPED
    AVG_VOLUME_SWAPPED
    SWAPPERS
    1
    2025-04-28 00:00:00.000StableCeler892216819524.0231578870603.15806219.3710467081
    2
    2025-04-28 00:00:00.000StableGate252436549.1524811043841.87060518274.576241
    3
    2025-04-27 00:00:00.000StableCeler492207912060.6345088851079.134903246.1353981221
    4
    2025-04-27 00:00:00.000StableGate252224520.23912511007292.71812512260.11956251
    5
    2025-04-26 00:00:00.000StableCeler782203015283.802298839018.500395195.9461832051
    6
    2025-04-26 00:00:00.000StableGate452053918.70763410982772.47913479.67690853
    7
    2025-04-25 00:00:00.000StableCeler832195221409.1796468823734.698105257.9419234461
    8
    2025-04-25 00:00:00.000StableGate12516189347.24804810928853.77136615778.9373373336
    9
    2025-04-24 00:00:00.000StableCeler1172186923337.0731758802325.518459199.4621638891
    10
    2025-04-24 00:00:00.000StableGate10504197822.90058410739506.52331819782.29005842
    11
    2025-04-23 00:00:00.000StableCeler1392175229844.2698468778988.445284214.7069773091
    12
    2025-04-23 00:00:00.000StableGate749467710.39139610541683.6227349672.9130565713
    13
    2025-04-22 00:00:00.000StableCeler1422161324312.8717498749144.175438171.2174066832
    14
    2025-04-22 00:00:00.000StableGate648739115.19899110473973.2313386519.1998318333
    15
    2025-04-21 00:00:00.000StableCeler1122147111869.3930058724831.303689105.9767232591
    16
    2025-04-21 00:00:00.000StableGate548137192.99179610434858.0323477438.59835923
    17
    2025-04-20 00:00:00.000StableCeler1182135911638.3159778712961.91068498.6297964152
    18
    2025-04-20 00:00:00.000StableGate547649187.83368810397665.0405519837.56673762
    19
    2025-04-19 00:00:00.000StableCeler60212418897.3323858701323.594707148.2888730831
    20
    2025-04-19 00:00:00.000StableGate447139917.77958610348477.2068639979.44489652
    ...
    161
    15KB
    2s