scottincryptoUntitled Query
    Updated 2022-02-27
    select
    'redeem' as type
    , sum(event_inputs:redeemAmount::numeric / 1e18) as amount
    from ethereum.events_emitted
    where contract_address = '0x989273ec41274c4227bcb878c2c26fdd3afbe70d'
    and event_name = 'Redeem'
    union all
    select
    'mint' as type
    , sum(event_inputs:mintAmount::numeric / 1e18) as amount
    from ethereum.events_emitted
    where contract_address = '0x989273ec41274c4227bcb878c2c26fdd3afbe70d'
    and event_name = 'Mint'
    --and block_timestamp > '2022-02-20'
    Run a query to Download Data