lanoThe number of different actions on red bank copy
    Updated 2024-02-18
    -- forked from NILOOZH / The number of different actions on red bank @ https://flipsidecrypto.xyz/NILOOZH/q/PTBfIzQsncwO/the-number-of-different-actions-on-red-bank

    SELECT
    date_trunc('day', block_timestamp) as day,
    count(DISTINCT tx_id),
    action
    -- amount::INT amount,
    -- amount_scaled::INT amount_scaled
    FROM
    osmosis.mars.ez_redbank_actions
    WHERE
    action IN ('deposit', 'withdraw', 'borrow', 'repay')
    and tx_succeeded = 'true'
    GROUP BY
    1,
    3


    Last run: over 1 year ago
    DAY
    COUNT(DISTINCT TX_ID)
    ACTION
    1
    2023-12-23 00:00:00.000179deposit
    2
    2023-11-06 00:00:00.00062borrow
    3
    2023-02-22 00:00:00.000178repay
    4
    2023-11-10 00:00:00.00080withdraw
    5
    2023-06-01 00:00:00.000156deposit
    6
    2023-06-02 00:00:00.000106borrow
    7
    2023-06-19 00:00:00.000115repay
    8
    2023-08-20 00:00:00.00065borrow
    9
    2023-12-03 00:00:00.000236deposit
    10
    2023-04-03 00:00:00.00075borrow
    11
    2023-06-01 00:00:00.00091repay
    12
    2023-06-29 00:00:00.00066withdraw
    13
    2023-08-23 00:00:00.000136deposit
    14
    2023-09-15 00:00:00.00035withdraw
    15
    2023-09-27 00:00:00.00094deposit
    16
    2023-10-12 00:00:00.000110repay
    17
    2023-12-24 00:00:00.000141withdraw
    18
    2024-02-05 00:00:00.00091repay
    19
    2023-08-07 00:00:00.000152deposit
    20
    2024-01-30 00:00:00.000106repay
    ...
    1503
    60KB
    3s