FlashLoans & Arbitrage

Hi,
Lets discuss how to do arbitrage with Flashloans.
Thank you

2 Likes

Hey, I was just about to create this topic but I noticed thereā€™s already an existing topic. Have you been able to make any progress in this area?

I havenā€™t got any reply but Ivan did mention they are coming out with a course just for flashloans. So just waiting for that.

Were you asking about flash loans on the Aave platform? I know they offer that option.

I was asking about flash loans in general. I know there are a bunch of platforms which provide that option. But I do know about AAve. Itā€™ll be interesting to learn more about it.

Hi @aenhsaihan did you check the defi 201 course on our academy it explains everything you need to know about flashloans and Arbitrage. @amadeobrands is a great instructor.

1 Like

Hey
Im trying to perform a flashloan for a couple of daysā€¦ it shows me that ā€œgas required exceeds allowance (11732908) or always failing transactionā€
@amadeobrands does this mean that I dont have enough ethereum in my metamask to deploy my contract?

Found this cool cheat sheat for Flash loans using

See here the combo: https://t.co/Ng4duV6LuK?amp=1
I did make some profit at high DAI price and LOW Gas price :slight_smile:

2 Likes

Hey I just signed up for the Academy. Iā€™m wondering how deep I need to get into the programming side if all I want to be able to do is program flash loans at this point. Any advice would be great.

Hello sir, welcome to the Academy, glad to have you with us :smiley:

If you want to start development from scratch the Javascript Programming for Blockchain Developers should be the first step.

After finish it, you can choose to go into Ethereum courses or take C++ Programming for Blockchain Developers, so you have a better picture and skills for any other programming course.

Bitcoin

Ethereum

Recommended

EOS

Gaming

Hope you find this useful. :slight_smile:

If you have any doubt, please let us know so we can help you!

Carlos Z.

Thanks. I got into the Defi 201 videos to get the basic idea of flash loans and now I will backtrack a bit to ETH programming 101 to fill in the earlier materials before continuing.

hello guys,

Iā€™m trying to follow the flash loan test as shown in the videos. When trying to get DAI from aave testnet (https://testnet.aave.com/faucet ) it just keep loading and loadingā€¦so I donā€™t get anything.

same thing with other coins.

i have kovan testnet on metamask.

any ideas?

thanks

Hello, I am trying to create a flashloan and I noticed on the Aave site where it lists the live reserve asset addresses, that the ETH address looks odd and is also displayed in black instead of as a link.

At the top of the page it says ā€œSince ETH is used directly in the protocol (instead of an abstraction such as WETH), we use a mock address to indicate ETH:0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeEā€

What does this mean exactly? If this is not a real eth address then what address should be used to pull from for flash loans if you want the loan to be gotten in eth?

Can anyone help me on this?

In case of arbitrage example in DeFi 201 course we need 2 exchanges.
Where can I find the uniswap factory from exchanges?

Hello Amadeo,
when I try to deploy Arbitrage.sol, after the approve on Metamask the transaction remain always pending.
Also with myflashloan.sol I have the same issue. There are Problems in Kovan network ? I forgot something to do ?
I have simply copied code from Github to Remix. But I have always these issues.
Thanks

Hi @amadeobrands!

When Iā€™m trying to call makeArbitrage() from https://github.com/Robsonsjre/FlashloanUsecases/blob/master/contracts/arbitrage/Arbitrageur.sol it or any other contract functions remix warns me with a message ā€œGas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
The execution failed due to an exception. Revertedā€

Iā€™ve funded the contract as was explained in the basic flash loan example video. So, it should have enough funds to pay the aave fee. So, itā€™s not that.

Any ideas?

1 Like

The status of the transaction is just ā€œFailā€: https://kovan.etherscan.io/tx/0x67917484feedc8f984ffeff4473bb45007ed144f8ee45f4e480624b976dade90
No details on the error. By the way, when I was trying to make an arbitrage for 10 DAI, it was failing as well, but with ā€œFail with error ā€˜The requested amount is too small for a flashLoan.ā€™ā€ error message: https://kovan.etherscan.io/tx/0x9c97cd83221c02ee1c8aaf42fff463d1283cc929d1a960c468a667234f9bc9b7
So, I ended up with 10000 DAI that fails with no error message. Maybe something has changed and itā€™s time to update the course slightly?

At the same time when I swap the addresses of UNISWAP_FACTORY_A and UNISWAP_FACTORY_B it fails correctly with the message ā€œDid not profitā€. As expected. https://kovan.etherscan.io/tx/0xb1b032b09bf60acea33c55b400a807d73d1cf591dabbd9cd6598a7b5730d22d1

Ouch. And now https://kovan-uniswap.netlify.app/swap and https://kovan-uniswap2.netlify.app/swap respond with " Unavailable For Legal Reasons". Could you please update the course, guys? @ivanimgur-2020_12_22-17:28:41

I had the same problem too. Iā€™ve raised it as an issue on GitHub. Something must have changed with the API or so.

I know it may be very simple and itā€™s probably not the issue but did you make sure you raised the Gas Fee