Many Thanks !
Hello again,
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
DeFi course 201 â hacking and arbitrage.
Very informative and lots of hands-on!
I walked away (after taking DeFi 201 course ) with a more in-depth understanding of Decentralized Finance and its various protocolsâŚ
As always, instructors do a great job!!
Alright so I have a question, so in the contract you have executeOperation function and makeArbitrage function but you only use the make arbitrage function to conduct the operation, so then whatâs the point of the executeOperation function?
Another question where did you find the exchange contract addresses for exchange a and b, I only see the addresses for the Uniswap factory. And whatâs the difference between the 2, I thought they were the same.
Alrighty, so - I have jumped in head first to the DeFi space as far as arbitrage, staking, yield farming, and flash loans are concerned. Iâve also margin traded with leverage. Iâve made profits from all of them, large and small.
This is what I can share:
Arbitrage is HARD to catch unless you practice at it and are FAMILIAR with the different exchanges and the cryptocurrency market as a whole. I took the steps to actually learn to coding method of arbitrage/flashloans to pay respect to the course and the instructor - having said that, I will usually just dedicate maybe an hour or so a day to looking for arbitrage/flashloan opportunities on furucombo, essentially the same thing.
I love staking good assets, if you believe in the asset and will see a decent return on your staked portion, there is no reason no to go ahead and at least try. Most banks give less than 1% interest unless you have lots and lots of money, sometimes even when you do. I receive at least 12% for staked assets, sometimes as much 100âs of % - this is by far and away one of the best ways to increase your profits. Do your own research, choose wisely.
Yield farming is pretty much the same concept as staking assets, save for the fact that usually when yield farming there are additional rewards and additional steps to go through to receive those rewards - compounded interest received via pairs of assets staked in order to receive the benefits of the locked assets as well as an additional token of some sort.
Margin trading w/ or w/o leverage is fun and useful. Youâre basically borrowing funds in addition to the funds you are depositing for the actual trade in order to combine the borrowed funds with your own funds to increase the size of the trade; you can add leverage on top of this. Seeing as how when you invest in something like bitcoin or eth you are essentially spot trading a long position with no leverage, everyone who owns crypto is in essence trading - margin trading just amplifies this.
I actually initiated a flash loan for some ETH and DAI, deposited the loaned assets to dXdY (where I was getting a higher % for my deposited DAI than the daily % cost of my loan) where I initiated a long position margin trade w/ LOW LEVERAGE (high lev can get you rekt) this was a successful trade, withdrew the amount needed to repay the loan, left the rest on dXdY so i can continue to trade and the rest is history. (I DO NOT RECOMMEND THIS UNLESS YOU REALLY KNOW WHAT YOU ARE DOING.)
Its been a really fun journey, and I am not infallible, I have lost money as well, but like any good trading bot/algorithm, if you win more than you lose, DYOR and make good investments - you remain in profit. Cheers!
Thanks for the amazing content.
where do we can find some strategies to use on flashloans�?
Thanks for the great info, from IOT team and from the previous fellow learners. i am neither swing or momentum or scalp trader but i want to know and be confident to do more; at my own speed, i will
(gulp).
As for coding, i get it but the courses are here for me need more of time to explore them as I learn more about identifying the opportunities and for me to remain in learning mode and do my research, exploring my interests and develop my aptitudes as I gain new skills.
The business masters class helped me, in this other courses too, when the going went from tough to tougher. i know this course may have kicked my @ss on a front or two but i know that through it, I found in here great leqarning, well compiled and not broken up in disjointed parts - invaluable.
Plus the readings in the extra reference links, not only below the video but at the onset of the forum discussion added even MORE with eye opening nuggets of missing Eureka info, and all with opportunities for another perspective - with some of the footnotes in these papers that provided often more needed insight for me, than the original linked paper!
lots to learn - good luck everyone. not holding anyone to this but hope for the follow through to the comments of âthis yearâ, which was last June '20 but if this (next) year means at most the calendar year 12 months, then Spring Summer '21 fro 301? LOL Fingers crossed yet of course, soon as it can. Iâd add as my request, FinTechâs next iteration too
Very cool course - thank you so much for sharing so much knowledge. I enjoyed it so much and I learned a lot. I like the idea of flash loans but wouldnât take the risk myself. But thank to you know what they are, how to use them and how to do it if I ever change my mind
I finally managed to complete the flash loans (BE SURE TO TURN OFF BRAVE FILTER FIRST!), but I have questionsâŚ
When the transaction fails, how do you know why (lack of fees)?
I had to send several 100 DAI to my contract address before it worked (I assume fees are much higher than when this was recorded?) How can I see how much DAI is currently allocated to my contract address? I guess I need to understand etherscan a little better. There are a few places that I would have liked to know more details on what exactly I am looking for.
Iâm not real big on trading, but I sure learned a lot during this course. Now Iâm anxious to get started on some others. Thanks again, Amadeo and Rob!
@amadeobrands Please send me some Kovan testETH. I canât get it from any of the sources mentioned in the videos. Thank you. Address: 0xd7153f282830103Ca587CB6bCD4325BCB8f911e2
Please someone send me se Kovan ETH
0xd7153f282830103Ca587CB6bCD4325BCB8f911e2
Hi. In the example for the simple FlashLoan what would be the address if I want to lend KETH. If I use
0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE than I get the message
Fail with error âThe actual balance of the protocol is inconsistentâŹâ on Etherscan for Kovan Testnet.
I would like to play around with AaveFlashLoan and Compound. But they use different contracts for e.g. DAI. So I thought maybe for KETH this should work. For example an aave flashloan than borrow n compound and repay everything. I know this doesnât make any sence. It is only for practise.
Thank you.
Henning
Hi @amadeobrands & All,
I am struggling to get through âProgram a Basic Flash Loan Part 2â.
I was able to deploy the contract (however I had to change the compiler version to 0.5.5 as otherwise it didnât let me deploy).
I also had to change the Aave provider address to: 0x88757f2f99175387aB4C6a4b3067c77A695b0349 (current address as per their website)
Then I was able to send 1000DAI to the contract and confirmed itâs receipt via Etherscan.
When I try to execute the âmyFirstFlashâ function (as described in the video) I get the Gas Estimation Failed error (same as Rob in the video but his issue was the insufficient DAI amount in his contract which I fixed earlier).
When ignore the error and force the transaction, it just says âFailâ on Etherscan.
What is wrong here exactly?
Please help.
Hello Samm,
How did you get through âProgram a Basic Flash Loan Part 2â?
I was able to deploy the contract (however I had to change the compiler version to 0.5.5 as otherwise it didnât let me deploy).
I also had to change the Aave provider address to: 0x88757f2f99175387aB4C6a4b3067c77A695b0349 (current address as per their website)
Then I was able to send 1000DAI to the contract and confirmed itâs receipt via Etherscan.
When I try to execute the âmyFirstFlashâ function (as described in the video) I get the Gas Estimation Failed error (same as Rob in the video but his issue was the insufficient DAI amount in his contract which I fixed earlier).
When ignore the error and force the transaction, it just says âFailâ on Etherscan.
What is wrong here exactly?
Please help.
I think if you use the new v2 version which you do with the address: 0x88757f2f99175387aB4C6a4b3067c77A695b0349 the flashloan works a little bit different. So if you compare these two sites
v1: https://docs.aave.com/developers/v/1.0/tutorials/performing-a-flash-loan/âŚ-with-remix
v2: https://docs.aave.com/developers/guides/flash-loans
There is no transferFundsBackToPoolInternal at the end of the executeOperation() function. The old code will not work for v2. But for me the v1 address also works fine. I also coded very quick and dirty the new version and it works as well. You can see the transaction here
You also need some slightly different contracts from Aave. So here you can find all in one place
https://github.com/henmeh/AaveFlashLoan_v2/tree/master
I hope this will help you a little bit.
Best regards
Henning
Henning Sir,
Thank you very much for the explanation and for sharing the codes.
By changing the AAVE provider address back to v1, the example flash loan went through perfectly. I still need to get my head around the v2 solution though as it seems vastly different at first glance.
Thank you so much for your help again!
Okay, now I figured out whatâs going on in the v2 flashLoan contract as well, and was able to test it.
Once again, thank you so much Henning for this!
Youâre welcome. I am happy that this was helpfull for you.