vendettaETH OA 1 copy copy
    Updated 2023-02-12
    -- forked from bb49cc52-fc35-486d-a70d-fbf7f318c0c3

    -- forked from d2fc85f7-6e98-49de-a247-1a7c5caa5527

    select
    date_trunc('week', block_timestamp) as "date",
    sum(FLASHLOAN_AMOUNT_USD) as "Total Flashloan Volume USD",
    avg(FLASHLOAN_AMOUNT_USD) as "Average Flashloan Size USD",
    sum(PREMIUM_AMOUNT_USD) as "FlashLoan Fee Volume USD",
    avg(PREMIUM_AMOUNT_USD) as "Average Flashloan Fee USD"

    from ethereum.aave.ez_flashloans
    where FLASHLOAN_AMOUNT_USD < 1e9
    and PREMIUM_AMOUNT_USD < 1e9
    group by 1




    Run a query to Download Data