primo_dataAave - 6. Aave User Dashboard
    Updated 2022-08-12
    -- Aave - 6. Aave User Dashboard
    -- Create a dashboard that allows a viewer to input a user address and explore their borrowing and lending activity.
    -- Include metrics like total origination, loan revenue, outstanding debt, etc.


    /* with supplied as (
    select block_timestamp
    , blockchain
    , tx_id
    , aave_version
    , symbol token
    , 'supplied' typ
    , supplied_usd total_amount_usd
    , depositor_address address
    from flipside_prod_db.aave.deposits
    where block_timestamp > current_date - 10
    ),
    withdrawn as (
    select block_timestamp
    , blockchain
    , tx_id
    , aave_version
    , symbol token
    , 'withdrawn' typ
    , -withdrawn_usd total_amount_usd
    , depositor_address address
    from flipside_prod_db.aave.withdraws
    where block_timestamp > current_date - 10
    ),
    borrowed as (
    select block_timestamp
    , blockchain
    , tx_id
    , aave_version
    , symbol token
    , 'borrow' typ
    Run a query to Download Data