omer93dragonswap swaps
    Updated 5 days ago
    with
    news as (
    SELECT distinct from_address as news, min(trunc(x.block_timestamp,'week')) as debut
    from sei.core_evm.fact_transactions x
    join sei.core_evm.fact_event_logs y on x.tx_hash=y.tx_hash
    and topics[0]::STRING = '0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822'
    where to_address='0xa4cf2f53d1195addde9e4d3aca54f556895712f2'
    and status='SUCCESS'
    group by 1
    )
    SELECT
    trunc(x.block_timestamp,'week') as date,
    count(distinct x.tx_hash) as swaps,
    sum(swaps) over (order by date) as total_swaps,
    count(distinct from_address) as active_swappers,
    count(distinct news) as new_swappers,
    sum(new_swappers) over (order by date) as total_swappers,
    avg(tx_fee) as avg_tx_fee_sei,
    sum(tx_fee) as fees_sei,
    sum(fees_sei) over (order by date) as cumulative_fees
    from sei.core_evm.fact_transactions x
    join sei.core_evm.fact_event_logs z on x.tx_hash=z.tx_hash
    left join news y on trunc(x.block_timestamp,'hour')=debut
    where to_address='0xa4cf2f53d1195addde9e4d3aca54f556895712f2'
    and topics[0]::STRING = '0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822'
    and status='SUCCESS'
    and date>'2024-05-28'
    group by 1 having date is not null order by 1 desc

    Last run: 5 days ago
    DATE
    SWAPS
    TOTAL_SWAPS
    ACTIVE_SWAPPERS
    NEW_SWAPPERS
    TOTAL_SWAPPERS
    AVG_TX_FEE_SEI
    FEES_SEI
    CUMULATIVE_FEES
    1
    2025-03-31 00:00:00.00016527012931111145870.046635751977.042262133117026.445826771
    2
    2025-03-24 00:00:00.00024456996411111145860.04651867118113.738151032116949.403564638
    3
    2025-03-17 00:00:00.00025666971961001145850.04662096064119.629385009116835.665413606
    4
    2025-03-10 00:00:00.0008786946301101145850.0278788953424.47767011116716.036028597
    5
    2025-03-03 00:00:00.00010486937521101145850.0264614353827.731584279116691.558358487
    6
    2025-02-24 00:00:00.00034216927041211145850.03428463494117.287736141116663.826774208
    7
    2025-02-17 00:00:00.00020956892831611145840.0324362574467.953959333116546.539038067
    8
    2025-02-10 00:00:00.00012316871881121145830.0297018519336.889700099116478.585078734
    9
    2025-02-03 00:00:00.0001655685957701145810.0243592290240.314524028116441.695378635
    10
    2025-01-27 00:00:00.00021176843021701145810.0343200702572.65558871116401.380854606
    11
    2025-01-20 00:00:00.000341668218523111145810.03334032745124.959547267116328.725265896
    12
    2025-01-13 00:00:00.00030426787691501145700.03798307326115.544508868116203.765718629
    13
    2025-01-06 00:00:00.00028566757271301145700.0406465089116.086429411116088.221209761
    14
    2024-12-30 00:00:00.00028936728711301145700.0394652091114.172849936115972.134780351
    15
    2024-12-23 00:00:00.00042046699782111145700.02878678022121.019624048115857.961930415
    16
    2024-12-16 00:00:00.00059706657742671145690.02095404501129.915079082115736.942306367
    17
    2024-12-09 00:00:00.00062526598042351145620.02166569958142.711963144115607.027227284
    18
    2024-12-02 00:00:00.00059076535522541145570.0154707835994.789491031115464.31526414
    19
    2024-11-25 00:00:00.00076736476453461145530.02108509866180.530614715115369.525773109
    20
    2024-11-18 00:00:00.00076096399723211145470.02211025913171.465059542115188.995158395
    44
    4KB
    43s