Lets hack Flash Loans | Flash loan assignment/discussion

If you borrow DAI I think you may need to pay some fees in DAI as well but my understanding could be wrong. I’m not sure how many other protocols are around that have a simple drag and drop GUI…

https://yieldhero.app/ is a cool site to check out that has some options for you to play with that require no real programming?

2 Likes

The benefits of a flash loan are better suited to decentralised exchanges IMO

1 Like

Hi, i dont realy understand how to create those arbitrgae opportunitys in real life.
It isnt possible to just create two exchanges myself i guess
But how do i do that without creating them by myself??
Greetings!!!

No that is not possible it can only be in one block.

1 Like

Thank you for your response.
I was not aware I just provide content and love to spread DeFi knowledge.
Today will see how I can improve to code and guide so it is a bit easier to follow.

Thank you I really put a lot of effort into the course but all feedback is welcome :slight_smile:

3 Likes

I think the marketing went a bit too far. The course is good, I learned a lot but I admit I was discouraged to learn at the end of the course that arbitrage space is already crowded and has been this way for years.

I think the extra reading material is the hidden gem in this course. It helps me go deeper into the subjects and find the good stuff without having to google and read through a ton of blog posts before finally finding answers.

7 Likes

Have you tried to pool funds before to the uniswap v1 and v2?

You have to take crypto from the faucet of aave, and them pool them on the clones on uniswap, after it, you can call the arbitrage.

to use it on mainnet we just have to change the addresses of the real tokens…

i’m also learing, don’t quote on me if i’m wrong, that is how i understood.

2 Likes

@nastyatimosha According to what I have read, you need ether in your wallet to pay for the gas when sending the smartcontract to the blockchain and executing the flash loan.
Remember if the flash loan fails and you cannot pay the loan + fees, it is reversed and the remaining gas is refund to the caller

1 Like

Unbelievable course Amadeo. It just keeps getting better and better. I am looking forward to DeFi 3.0! I learned a lot. I will think on your question and keep researching, right now my head is exploding and I need to process it all. Absolutely amazing.

6 Likes

i felt the same! looking forward for Defi 301!

Would like to see more integrations with mainnet…

let me know if there is anyone trying to develop something on top of this course

4 Likes

Hey :slight_smile:
I absolutely would like to develop something in the Defi Space too
I am learning more and more about solidity.
Would be amazing to connect to some people here!

3 Likes

Hi,

Thanks for sharing your feedback, we truly appreciate it. I’m sorry to hear that the course did not match your expectations. All knowledge needed to create flash loans are in the Academy and in this course. We provide people with the skills to build in this industry. In the end, it’s up to you as a student to then use that knowledge.

We are not a get rich quick scheme in any way. There is no one click flash loan that will give you money without effort. That’s not how the market works unfortunately.

I looked into your account details and so far you haven’t paid anything for the courses. You are still on your trial, which expired today. So you got this one completely for free! I hope you will enroll again in the future and that I will see you in other courses.

12 Likes

Nice to hear man!! Defi 301 coming Im sure later this year :slight_smile:

3 Likes

This is the place to be for meeting great people in Defi :slight_smile:
Hope you are enjoying the knowledge in the academy!

3 Likes

Thanks a lot for the kind words, Defi is indeed booming :slight_smile: and it’s very important to study everything about this space right now!

3 Likes

Of course, I am always honest in my feedback (which my work sometimes hates me for)!

I think it is important to note, the information given to us is invaluable. People new to the space such as myself are often lost when looking at these concepts on our own. In fact, I wouldn’t even know they existed without watching these videos. Amadeo has provided a detailed look at many of the emerging concepts in the space with some valuable information. From my perspective this course is fantastic, giving a basic/intermediate understanding of the concepts that can grow from there. I am not sure we/I would want Amadeo to give a full step by step account of how to do something in DeFi, because if it didn’t work out financially, he might get the blame. What he has given us is much better - knowledge to help make informed decisions.

Dustin

9 Likes

Thanks all for your comments and I do this with passion and just deliver the content and trying to spread DeFi knowledge. This code is open source for the world for everyone to use I made video’s and posted them together with Robert on the academy to try and reach more people around the world.

See here the changes made there where indeed some errors.
4 things Ive changed:

  1. is FlashLoanReceiverBase(address(0x506B0B2CF20FAA8f38a4E2B524EE43e1f4458Cc5)) was missing in the main first example :pensive:
  2. BAT_ADDRESS was wrong (was MKR in the place)
  3. The exchange order (factoryA / factoryB) was in the incorrect order. Now the git example is profit since the beggining, you dont need to reoorder
  4. require(daiBought > totalDebt, “Did not profit”);
    you should add fees before checking the profit
  5. I had to unbalance the uniswap exchanges (just bought 5000 DAIS in the exchange A)

We have committed the changes and have closed the issue on Github: https://github.com/Robsonsjre/FlashloanUsecases/issues/7

Arbitrage opportunity is there again :wink:
Take note that all can play around in this Flash Loan Play ground.

5 Likes

@DeCryptolorian @crypto-pt and All we where working on a collateral swap see:

This concept I took from DeFi safer https://defisaver.com/
You can then use Flash Loans to swap your underlying collateral.
Feel free to commit or add code.

Besides this I’m looking into Balancer and the opium protocol to create some new financial instruments. I would recommend reading: https://medium.com/opium-network/introducing-first-zepo-pre-market-for-bal-token-is-live-42c8e8dcd1dc

Basically creating pools then create volume using Flash Loans is very interesting.

3 Likes

Some other testnet similar to Aave to use since it is giving an error since yesterday and you cannot take DAI, BAT, or MAKER to practice

1 Like