elsinaDaily Activity
    Updated 2025-05-14
    WITH raw_tx AS (
    SELECT
    CASE
    WHEN origin_function_signature = '0x617ba037' THEN 'Supply'
    WHEN origin_function_signature = '0xa415bcad' THEN 'Borrow'
    WHEN origin_function_signature = '0x573ade81' THEN 'Repay'
    WHEN origin_function_signature = '0x69328dec' THEN 'Withdraw'
    END AS states,
    tx_hash,
    from_address,
    block_timestamp,
    regexp_substr_all(SUBSTR(input_data, 11), '.{64}') AS segmented_data
    FROM mezo.testnet.fact_transactions
    WHERE
    to_address = '0x9c55214751472788a06797d88f38af1e79eee018'
    AND tx_succeeded = 'True'
    AND origin_function_signature IN (
    '0x617ba037', -- Supply
    '0xa415bcad', -- Borrow
    '0x573ade81', -- Repay
    '0x69328dec' -- Withdraw
    )
    ),

    extracted AS (
    SELECT
    states,
    tx_hash,
    from_address,
    block_timestamp,
    '0x' || LOWER(RIGHT(segmented_data[0], 40)) AS token_address,
    segmented_data[1] AS raw_amount
    FROM raw_tx
    ),

    decoded AS (
    Last run: 26 days ago
    TX_DATE
    TX_COUNT
    LAG_TXS
    TX_CHANGE
    UNIQUE_USER
    LAG_USERS
    USER_CHANGE
    VOL_USD
    LAG_VOL
    VOL_CHANGE
    CUMULATIVE_TX_COUNT
    CUMULATIVE_VOL
    1
    2025-04-08 00:00:00.00021796559769689.8487696721799769689.84876967
    2
    2025-04-09 00:00:00.0002636217920.9773465512.0612083663.68605819769689.8487696723.69481521853353.5348278
    3
    2025-04-10 00:00:00.00023072636-12.48553734-24.6611048102.724570112083663.6860581-8.57712232901456.2593979
    4
    2025-04-11 00:00:00.00019432307-15.78516553-6.6914142169.111667711048102.724570128.01906547043625.3710656
    5
    2025-04-12 00:00:00.000199919432.8859451615.1218509063.875859714142169.111667730.881106465552689.2469253
    6
    2025-04-13 00:00:00.00013811999-30.92428594-27.9516930061.19141418509063.8758597-8.531244582482750.4383392
    7
    2025-04-14 00:00:00.000139413810.944604287.4818268271.399746316930061.1914147.913839100751021.838086
    8
    2025-04-15 00:00:00.0002185139456.7473246059.1320644026.608365318268271.39974631316024121395048.446451
    9
    2025-04-16 00:00:00.000224621852.79644732-12.0224717592.547927620644026.608365319.7318270146112640.994378
    10
    2025-04-17 00:00:00.00014012246-37.62407644-36.824128431.305668824717592.5479276-2.3819671170241072.300047
    11
    2025-04-18 00:00:00.00028201401101.2871740776.17171909756.4000124128431.3056688612.4822491342150828.700057
    12
    2025-04-19 00:00:00.000301828207.02105671747.28137331137.053807171909756.40001-20.1125509479481965.753864
    13
    2025-04-20 00:00:00.00019713018-34.695191056-50.85123142932.96538137331137.053807-10.3327480602624898.719244
    14
    2025-04-21 00:00:00.0002329197118.1683151960.12102296117.330597123142932.96538-16.9329809704921016.049841
    15
    2025-04-22 00:00:00.0003840232964.88109483131.65105931447.981197102296117.3305973.5533649810852464.031038
    16
    2025-04-23 00:00:00.00024423840-36.418281094-24.3199841370.770543105931447.981197-5.7536091910693834.801581
    17
    2025-04-24 00:00:00.00021002442-14715828-13.65103182147.19441199841370.7705433.35381911013875981.99599
    18
    2025-04-25 00:00:00.0003660210074.29107271549.93155216595.16138103182147.19441150.43418511169092577.15737
    19
    2025-04-26 00:00:00.000384036604.92107410720.19222213943.254125155216595.1613843.16456911391306520.4115
    20
    2025-04-27 00:00:00.00025593840-33.365421074-49.53121043102.211062222213943.254125-45.53482501512349622.62256
    37
    4KB
    5s