Skip to main content

Flashloan

Now, you’ll create a Flash Loan Contract that enables users to borrow funds instantly and repay them within a single transaction. Divided into three tasks, you’ll learn how to build flash loans, execute arbitrage strategies between DEXs, and aggregate loans from multiple providers (Aave, Uniswap, and your contract).

Flashloan MVP

Create a flash-loan contract that:

Definition of Done

  • Logic described in elevator pitch
  • Unit and integration tests

Arbitrage Test

Create an e2e test that does an arbitrage between 2 unbalanced uniswap v2 and sushiswap pools using the flash loan

Definition of Done

  • Logic described in elevator pitch
  • Unit and integration tests

Flashloan Aggregator

Create another contract that flash-loans from multiple flash-loan providers.

i.e. flash-loan 100M (70M from uniswapV2, 20M from aave, 10M from your flash-loan contract)

Definition of Done

  • Logic described in elevator pitch
  • Unit and integration tests