Skip to content
#

flashloan

Here are 35 public repositories matching this topic...

ezera23
ezera23 commented Jan 14, 2022

Fees need to be calculated before send the transaction to avoid 'Not enough amount to return loan', 'INSUFFICIENT_OUTPUT_AMOUNT' errors... It would be nice if you can implement something like this:

  1. Get Quote
  2. Calculate each swap fees and add to it loan fees and ADD the slippery % (the one set in config.ts)
  3. Check the difference of % or calculate amount and check amount diff.
  4. If di
enhancement good first issue

This contains all the code to execute a successful flash-loan on the Kovan test-net of Ethereum. Flash-loan will be taken from the aave lending pool where will will take 1 DAI as a flash-loan, please keep in mind that you can take very huge flash-loans but make sure you have topped-up enough DAI in to your smart contract i.e. in this instance to pay back to the aave lending protocol as the fees and interest generated over this complex transaction.

  • Updated Jun 29, 2022
  • Solidity

Improve this page

Add a description, image, and links to the flashloan topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the flashloan topic, visit your repo's landing page and select "manage topics."

Learn more