ArioKamino - Deposit/Withtdraw | TXs and Users
    Updated 2025-03-31
    select
    date_trunc(day, block_timestamp) as date,
    count(DISTINCT
    case
    when event_type = 'depositReserveLiquidityAndObligationCollateral' then tx_id
    end
    ) as "# Deposits",
    count(DISTINCT
    case
    when event_type = 'withdrawObligationCollateralAndRedeemReserveCollateral' then tx_id
    end
    ) as "# Withdrawals",
    count(DISTINCT
    case
    when event_type = 'depositReserveLiquidityAndObligationCollateral' then signers [0]
    end
    ) as "# Depositors",
    count(DISTINCT
    case
    when event_type = 'withdrawObligationCollateralAndRedeemReserveCollateral' then signers [0]
    end
    ) as "# Withdrawers"
    from
    solana.core.fact_decoded_instructions
    where
    program_id = 'KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD'
    and event_type in (
    'depositReserveLiquidityAndObligationCollateral',
    'withdrawObligationCollateralAndRedeemReserveCollateral'
    )
    and block_timestamp >= current_timestamp - interval '{{days}} days'
    group by
    1
    Last run: 16 days ago
    DATE
    # Deposits
    # Withdrawals
    # Depositors
    # Withdrawers
    1
    2025-02-15 00:00:00.00014880460314341111
    2
    2025-03-15 00:00:00.00037965023526
    3
    2025-03-19 00:00:00.000427913742832
    4
    2025-01-16 00:00:00.00011133655420912182
    5
    2025-02-26 00:00:00.00010550614424161939
    6
    2025-03-12 00:00:00.000840435933835
    7
    2025-03-07 00:00:00.00038528843354
    8
    2025-04-11 00:00:00.0004326801215
    9
    2025-01-15 00:00:00.00011783621620951912
    10
    2025-03-08 00:00:00.00038395711226
    11
    2025-02-07 00:00:00.00031128802316441365
    12
    2025-02-11 00:00:00.00031030655418931407
    13
    2025-02-27 00:00:00.0007460450416631415
    14
    2025-03-03 00:00:00.0008567493120411755
    15
    2025-02-23 00:00:00.000292527001126879
    16
    2025-03-14 00:00:00.000282512562351
    17
    2025-03-29 00:00:00.0002706624414860
    18
    2025-02-20 00:00:00.0004831365515551165
    19
    2025-03-27 00:00:00.0001635923642744
    20
    2025-03-01 00:00:00.000599623531215933
    91
    4KB
    4s