Afonso_DiazOvertime
    Updated 2025-03-26
    with

    pricet as (
    select
    hour::date as date,
    avg(price) as token_price_usd
    from
    ronin.price.ez_prices_hourly
    where
    symbol = 'RON'
    group by 1
    ),

    last_pricet as (
    select
    avg(price) as token_price_usd
    from
    ronin.price.ez_prices_hourly
    order by hour desc
    limit 1
    ),

    main as (
    select
    tx_hash,
    block_timestamp,
    origin_from_address as user,
    iff(full_decoded_log:data[3]:name = 'assets', 'Withdraw', 'Deposit') as event_name,
    full_decoded_log:data[iff(event_name = 'Deposit', 2, 3)]:value / 1e18 amount,
    amount * token_price_usd as amount_usd
    from
    ronin.core.ez_decoded_event_logs
    left join
    pricet on block_timestamp::date = date
    where
    tx_succeeded
    Last run: 29 days ago
    DATE
    TRANSACTIONS
    USERS
    DEPOSITORS
    DEPOSIT_VOLUME
    DEPOSIT_VOLUME_USD
    WITHDRAW_VOLUME
    WITHDRAW_VOLUME_USD
    WITHDRAWERS
    AVG_DEPOSIT_AMOUNT
    AVG_DEPOSIT_AMOUNT_USD
    AVG_WITHDRAW_AMOUNT
    AVG_WITHDRAW_AMOUNT_USD
    TVL
    TVL_USD
    1
    2025-03-15 00:00:00.00011110083.008362500010083.00836250010028231.656625944
    2
    2025-03-20 00:00:00.000977232073182245.8245532521.5705905125785.88888888920249.5360614720.22222222220.174510055623217165545719.5050198
    3
    2025-03-21 00:00:00.000374253253513645.035395683.11401952317765.60713685.619876005341373.3824465241057.97624069447.50162299536.592566513728050.428205540696.896674
    4
    2025-03-22 00:00:00.00079665522111.85417198.884731322443.7711900.79654735217279.896886076217.70740166230.93381012724.060715789747718.511211093322.554139
    5
    2025-03-23 00:00:00.00064503829025.6922760.608497453105278254.7882807515453.52640625355.634507773164.484375128.981066887766217.201216315809.195237
    6
    2025-03-24 00:00:00.000454394387454448.813871988365428.236939783577.7842876.942923741191000.988576811804.9080108817.8805814986.3368786871217088.23087199343604170.174553
    7
    2025-03-25 00:00:00.000295258249387228.654843146311417.33535397432790.89426371.118732138201312.6395079431055.651984251111.15557288189.3936228211571525.99171513443667821.768473
    8
    2025-03-26 00:00:00.0001071009136353.33829375.85522385820674.45445878216706.30028564111339.75082243274.540703027193.219200549156.1336475291587204.87525635448094230.332612
    8
    1KB
    4s