hmxinternDeposit
    Updated 2024-05-02
    WITH deposit_withdraw as (
    select
    BLOCK_TIMESTAMP,
    DECODED_LOG['primaryAccount'] as account,
    lower(DECODED_LOG['token']) as token,
    iff(
    EVENT_NAME = 'LogDepositCollateral',
    DECODED_LOG['amount'],
    -DECODED_LOG['amount']
    ) as amount,
    iff(
    EVENT_NAME = 'LogDepositCollateral',
    'deposit',
    'withdraw'
    ) as type
    from blast.core.fact_decoded_event_logs
    where CONTRACT_ADDRESS = lower('0x0b71cBBAd974B9DF8BDF6A83973B710AAa48e7ac')
    and EVENT_NAME in ('LogDepositCollateral', 'LogWithdrawCollateral')
    ),

    QueryRunArchived: QueryRun has been archived