mlhUntitled Query
    Updated 2022-09-18
    select date_trunc('day', BLOCK_TIMESTAMP) AS date,
    'Aave' as protocol,
    sum(ISSUED_TOKENS) AS ETH_supplied_volume,
    count(distinct DEPOSITOR_ADDRESS) AS distinct_suppliers
    from ethereum.aave.ez_deposits
    where SYMBOL ='WETH'
    and date >= CURRENT_DATE- 90
    group by 1, 2


    UNION

    select date_trunc('day', BLOCK_TIMESTAMP) AS date,
    'Maker' as protocol,
    sum(AMOUNT_DEPOSITED) AS ETH_supplied_volume,
    count(DISTINCT DEPOSITOR) AS distinct_suppliers
    from ethereum.maker.ez_deposits
    where SYMBOL='WETH'
    and date >= CURRENT_DATE- 90
    group by 1, 2

    UNION

    select date_trunc('day', BLOCK_TIMESTAMP) AS date,
    'Compound' as protocol,
    sum(SUPPLIED_BASE_ASSET) AS ETH_supplied_volume,
    count(DISTINCT SUPPLIER) AS distinct_suppliers
    from ethereum.compound.ez_deposits
    where SUPPLIED_SYMBOL='ETH'
    and date >= CURRENT_DATE- 90
    group by 1, 2

    Run a query to Download Data