0xasmrUntitled Query
    Updated 2022-08-21
    WITH a AS(
    SELECT
    tx_hash,
    vault,
    depositor,
    amount_deposited
    FROM ethereum.maker.ez_deposits
    WHERE symbol = 'WETH'
    AND tx_status = 'SUCCESS'
    )

    SELECT
    a.tx_hash,
    a.vault,
    a.depositor,
    a.amount_deposited AS weth_deposited,
    b.amount AS dai_borrowed
    FROM ethereum.core.ez_token_transfers b
    JOIN a
    ON a.tx_hash = b.tx_hash
    WHERE b.contract_address = LOWER('0x6B175474E89094C44Da98b954EedeAC495271d0F')
    AND b.origin_function_signature = LOWER('0x1cff79cd')
    AND b.from_address = '0x0000000000000000000000000000000000000000'
    LIMIT 400
    Run a query to Download Data