Skip to content
Dune Analytics

@johaya / Aave Flashloan Amt 24H

CounterAave Flashloan Amt 24H


About queries and results

Dune Analytics lets you explore, create, and share Ethereum analytics. You can find an endless amount of great queries and dashboards on Dune.

We have decoded Ethereum smart contract data so you can do powerful analysis with simple SQL queries and visualise the query results into beautiful graphs.

Dune Analytics is free for everyone forever. If you want extra features like private queries, export your results and more check out our Pro plan.

SQL query results


SQL query

1SELECT sum(amt*price) as flashloan
3(SELECT sum("_amount"/10^decimals) as amt,t.symbol as token,date(evt_block_time) as dt
4FROM aave."LendingPool_evt_FlashLoan" flashloans 
5LEFT JOIN erc20."tokens" t ON flashloans."_reserve" = t.contract_address
6WHERE evt_block_time > now() - interval '24 hours'
7GROUP BY 2,3)main
9(SELECT avg(price) AS price,
10          date(MINUTE) AS dt,
11          symbol
12   FROM prices.usd
13   WHERE symbol<>'ETH'
14   GROUP BY 2,
15            3
16   UNION SELECT avg(price) AS price,
17                date(MINUTE) AS dt,
18                symbol
19   FROM prices.layer1_usd_eth
20   WHERE symbol='ETH'
21   GROUP BY 2,
22            3) p ON main.token=p.symbol and p.dt=main.dt