omer93jellyverse on sei evm 2.2
    Updated 5 days ago
    WITH swaps_base AS (
    SELECT
    block_timestamp::DATE AS date,
    tx_hash,
    origin_from_address,
    DECODED_LOG:"tokenIn" AS token_in_address,
    DECODED_LOG:"tokenOut" AS token_out_address,
    DECODED_LOG:"amountIn" AS amount_in_raw,
    DECODED_LOG:"amountOut" AS amount_out_raw,
    DECODED_LOG:"poolId" AS pool_id
    FROM sei.core_evm.ez_decoded_event_logs
    WHERE contract_address = LOWER('0xfb43069f6d0473b85686a85f4ce4fc1fd8f00875')
    ),
    tokens_info AS (
    SELECT
    ADDRESS AS token_address,
    SYMBOL AS token_symbol,
    DECIMALS AS token_decimals
    FROM sei.core_evm.dim_contracts
    ),
    swappers as (
    select distinct origin_from_address as wallet, token_symbol,
    min(date) as first_day
    from swaps_base sb join tokens_info as ti on sb.token_out_address=ti.token_address
    group by 1,2
    )
    select first_day, token_symbol, count(distinct wallet) as new_users,
    sum(new_users) over (partition by token_symbol order by first_day) as total_new_users
    from swappers
    group by 1,2 order by 1 desc, 2


    Last run: 5 days ago
    FIRST_DAY
    TOKEN_SYMBOL
    NEW_USERS
    TOTAL_NEW_USERS
    1
    2025-04-23 00:00:00.000$gonad1106
    2
    2025-04-23 00:00:00.000FRAX61966
    3
    2025-04-23 00:00:00.000FRAX/USDC/USDT4506
    4
    2025-04-23 00:00:00.000FXS4154
    5
    2025-04-23 00:00:00.000JELLY167
    6
    2025-04-23 00:00:00.000JLY110866
    7
    2025-04-23 00:00:00.000USDC1310641
    8
    2025-04-23 00:00:00.000USDC-USDT-FRXUSD2028
    9
    2025-04-23 00:00:00.000USDC/USDT/FRAX23391
    10
    2025-04-23 00:00:00.000USDT88792
    11
    2025-04-23 00:00:00.000USD₮01623
    12
    2025-04-23 00:00:00.000WBTC3216
    13
    2025-04-23 00:00:00.000WETH74611
    14
    2025-04-23 00:00:00.000WSEI1915526
    15
    2025-04-23 00:00:00.000fastUSD6742
    16
    2025-04-23 00:00:00.000frxETH1736
    17
    2025-04-23 00:00:00.000jUSD4153
    18
    2025-04-23 00:00:00.000sFRAX8770
    19
    2025-04-23 00:00:00.000sfastUSD184
    20
    2025-04-23 00:00:00.000syUSD3431
    ...
    4958
    211KB
    5s