Aave Flash Loan Tutorial - Finding Arbitrage

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • #python #solidity #ethereum #aave
    Learn how to make contracts that use flash loans. Using Brownie, Solidity, Aave,
    ✍️Medium Post: medium.datadri...
    ⌨️ Code: github.com/Pat...
    🍫🍰Brownie Code: github.com/bro...
    👻 Aave: app.aave.com/
    Intro Video by: Amitai Angor AA VFX • 4K Motion Background -...
    Queen Flash: • Queen - Flash (Officia...
    ✅✅ Donate ✅✅
    I use donated funds to spend money on making fun & informational videos.
    ETH Wallet address: 0x9680201d9c93d65a3603d2088d125e955c73BD65
    😸😸Join the community!😸😸
    Chainlink developers discord: / discord
    Alpha Chain discord: / discord
    Twitter: / alphachainio
    Twitter (me): / patrickalphac
    Medium: / patrick.collins_58673
    Twitch Stream Uploads: / @patrickalphac-alt
    Twitch: / patrickalphac
    All thoughts and opinions are my own.

Комментарии • 698

  • @TravelChannelOne
    @TravelChannelOne 3 года назад +181

    Its like Jeff Bezos with hair

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +29

      I should keep a running list of these jokes

    • @williamlawson3617
      @williamlawson3617 2 года назад +2

      Holy cow, you're right...

    • @myonlinet-shirtbusiness5760
      @myonlinet-shirtbusiness5760 2 года назад

      The intro originally reminded of Sheldon from Big Bang Theory but you're right he has the Bezos nose.

    • @neelpatel122
      @neelpatel122 2 года назад

      Definitely

    • @MrGlujaN
      @MrGlujaN 2 года назад

      Without the billions but cooler

  • @RootkitStudios
    @RootkitStudios 3 года назад +87

    That intro was legendary

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +7

      I quite enjoyed making it thank you

  • @Dota2OG
    @Dota2OG 2 года назад +49

    im currently watching your 16hours course and i want to thank you so much for taking the time and helping so many people, i went trought the course because i want to build a arbitrage bot for bsc and with the experience and profits start developing my own projects , ended up finding your videos in the reverse order, but anyway thank you so much

  •  Год назад +3

    ok that intro was absolutely genius please more

    • @PatrickAlphaC
      @PatrickAlphaC  Год назад +1

      You win a comment award. Take my like, thank you.

    •  Год назад

      @@PatrickAlphaC Humbly I shall, thank you.

    • @kovychchat__my_Teleqram_id
      @kovychchat__my_Teleqram_id Год назад

      Questions can come in⬆️

  • @chrissutton232
    @chrissutton232 3 года назад +21

    You're absolutely killing it 👏 keep up the awesome tutorials

  • @MrGlujaN
    @MrGlujaN 2 года назад +7

    You know.. you are teaching how to make people wealthy, not just with flashloans,
    but with your entire valuable content , thank you so much for your great work , you inspired me to be a better dev
    I hope my experiments on web3 work and i land a job in blockchain development soon.

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +4

      Looking to make a dark world brighter. Good luck!

    • @MrGlujaN
      @MrGlujaN 2 года назад +6

      @@PatrickAlphaC I made it :D , now i have a job starting in this field, and that is so dope.
      my duty is to create an ICO and a frontend for an NFTgame. So thanks again

  • @fevicoI
    @fevicoI 3 года назад +14

    You don’t have to tell us repeatedly. I did a favour to myself by subscribed and clicking on notification button.
    Got attached to you since the Chainlink videos! Nice work man!

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +2

      Thanks so much! Going to keep making the Chainlink videos too :)

  • @mknight3488
    @mknight3488 7 месяцев назад +1

    These intros just misses a frog somewhere to be the best intro ever

  • @thomasaddison4268
    @thomasaddison4268 3 года назад +13

    Man I want to buy stocks of this intro

  • @angelcrypto4196
    @angelcrypto4196 3 года назад +11

    Thanks for the amazing content.. im completely new to coding and you have made it pretty much straight forward..Thanks!

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад

      That’s the plan. Glad you liked it!

  • @rexrep
    @rexrep 3 года назад +1

    subbed based on the intro alone. lots of production value here.

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад

      *sweats*
      I’ll do my best to keep it up ;)

  • @pgascon4349
    @pgascon4349 3 года назад +4

    Man for second I thought this was Jeff Bezos with hair haha awesome video!!

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +1

      I get this comment 3x per video lel

  • @bizong
    @bizong 2 года назад +1

    im not going to lie... that intro was sick... love the videos! Savior of the Universe!!! Bangin!

  • @myonlinet-shirtbusiness5760
    @myonlinet-shirtbusiness5760 2 года назад +1

    When he was running in the intro he reminded me of Sheldon from Big Bang Theory.😂 I loved it.

  • @thriveteam2688
    @thriveteam2688 2 года назад +1

    Haa ha fun intro! First time here! Hope there is news I can use!

  • @war4hire
    @war4hire 3 года назад +10

    Once again a great intro! Can you please make a video going deeper into the topic of Brownie adding Hardhat support?

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +2

      Hasn’t been added yet, but once it comes out....

  • @mad7505
    @mad7505 3 года назад +4

    Best tuts! Great work dude!!

  • @EbbyFlows
    @EbbyFlows 2 года назад +1

    Oh gawd that was an epic intro

  • @thesciencestudent9299
    @thesciencestudent9299 3 года назад +7

    wow jeff bezos teaching me stocks,love ya

  • @JMDepisodes
    @JMDepisodes Месяц назад

    the moment the Flash Gordon soundtrack came on ..he got me!!!! hahahhahahhhaahahh super funny!!!

  • @M00rgy
    @M00rgy 2 года назад +1

    Great guide. I love this intro

  • @traderkrum
    @traderkrum 3 года назад +3

    This deseves 1 000 000 000 views!

  • @MihaiLazarut
    @MihaiLazarut 2 года назад +1

    Nice tutorial, keep up the good work man.

  • @gravecode
    @gravecode 3 года назад +1

    Intro definitely sick bro

    • @patrickcollins479
      @patrickcollins479 3 года назад

      Thank you for watching, for question, guidance and support at anytime. Just DM +1.(4 .2 .3). 4 . 3 . 0 . 6 . 9 . 8 . 4 @ W H A T S A P...

  • @bassadelica
    @bassadelica 3 года назад +7

    Patrick thanks so much for this video. My big question is (possibly another user knows) Why isn’t every coder able to just make millions on autopilot with exchange arb bots?
    It must be harder to be successful than it appears

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +10

      A lot do. It’s because it’s easy to setup that it’s hard to be profitable, it’s incredibly competitive and every little detail counts

    • @truthgets613
      @truthgets613 2 года назад

      Great sugquestion

  • @JacobWard1995
    @JacobWard1995 4 месяца назад +1

    Can you show us how to do a test on our aave flash loan using a forked network? For let’s say the mainnet.

  • @Anne-cv4ms
    @Anne-cv4ms 2 года назад +1

    Yes it was a great intro indeed ! :D

  • @merv893
    @merv893 Год назад +1

    Your right that intro was sick, It made me sick. Had to take 10 min before watching the rest. Lol great vids, if you learn smart contracts inside out or close to ,ish. Having no real world experience will you be able to get an opportunity. Thanks Patrick

  • @TakaoSenpai
    @TakaoSenpai 3 года назад +3

    I can't believe I found Jeff Bezos with hair

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +1

      I think I’m starting to like this joke

  • @Jesse-um1pz
    @Jesse-um1pz 2 года назад +1

    Lmfao this channel is so awesome. Thank you for everything you're doing, Patrick.

  • @dananthony6258
    @dananthony6258 2 года назад +1

    That intro was awesome. Lmao 😂

  • @24capital75
    @24capital75 3 года назад +5

    Nice one man....but can you actually do one like top down it’s crazy but some of us don’t even know what software you use to open the contract or brownie or all of those

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +1

      Yeah.... you’ve mentioned this before actually. Is it the VS code and python where you struggle?

    • @24capital75
      @24capital75 3 года назад

      @@PatrickAlphaC Yh I know I have, I don’t think I know how to use it tbh it’s not really like the normal python console where you write codes then compile, there’s so much going on at the same time

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад

      @@24capital75 what do you mean "normal python console"? What are you using to write your python? Something like pycharm?

    • @the-omas
      @the-omas 3 года назад +1

      @@PatrickAlphaC what development platform are you on? That's what he is asking... Give name of your IDE platform

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +1

      @@the-omas no he knows it’s VSCode, we’ve chatted before

  • @RoldandelBolskan
    @RoldandelBolskan 2 года назад +1

    hahahah that intro deserves a subscribe

  • @wyatt4225
    @wyatt4225 2 года назад

    that intro is so sick

  • @Jimmyisabot
    @Jimmyisabot 2 года назад +1

    OK, fine, sick intro!!

  • @Saintel
    @Saintel 2 года назад +1

    This is just what I was looking for

  • @jayhu6075
    @jayhu6075 2 года назад +1

    Amazing explanation about loan. Hopefully more example in different network. Many thanks

  • @user-wr4yl7tx3w
    @user-wr4yl7tx3w 2 года назад +1

    Your videos are definitely quality content.

  • @fidiasfeliciano6424
    @fidiasfeliciano6424 2 года назад

    That intro IS sick

  • @grayblanchard4144
    @grayblanchard4144 2 года назад +3

    You are my hero!

  • @somatt
    @somatt 3 года назад +2

    Have a thumbs up for that intro

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +1

      🙏

    • @somatt
      @somatt 3 года назад +1

      @@PatrickAlphaC one question, can you explain why it minted the aave token? Is that the payment to the protocol? I am only a bit confused on that part.

  • @RosserNFT
    @RosserNFT 3 года назад +2

    The coding is scaring me some but I feel I need to understand this content. Seems like a good way to make passive income

    • @jimparks5478
      @jimparks5478 2 года назад +1

      Find a kid at your local college who can code and split profits

    • @enngennng5633
      @enngennng5633 2 года назад

      @@jimparks5478 hahaha 😆 you make laugh 😃 you are absolutely right but if that kid find millions he will escape from the college and you can't find him anywhere 😉

  • @dronestrikejr
    @dronestrikejr 3 года назад +3

    Definitely topQuality content!

  • @from2ureview251
    @from2ureview251 3 года назад +3

    please patrick keep it coming

    • @user-um3id1bj7y
      @user-um3id1bj7y 3 года назад

      Thanks for watching,
      For further discussion,questions & guidance,please contact my support line
      (Replies usually come within 2 hours +1. 8. 0. 4. 8. 2. 9. 3. 3. 8. 5).

  • @pan-galactic-gargleblaster
    @pan-galactic-gargleblaster 3 года назад +4

    I'm so glad this video came out! Couple weeks ago I took this aave mix for a spin on Matic. Long story short, the contracts deploy just great on mumbai and mainnet but brownie has a hell of a time interacting with contracts post deployment. Do you have any high-level intuitions why this might be? have you poked around on Matic using brownie yet?

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад

      I sure have! Stuff worked fine for me... love matic (polygon). What were the issues you ran into?

    • @pan-galactic-gargleblaster
      @pan-galactic-gargleblaster 3 года назад +3

      @@PatrickAlphaC you know what lol... I actually revisited that project just now. After getting my env variables up, I was able to call the contract and take out a flashloan using aave's lending pool on polygon. Didn't change an ounce of code; working inside of venv now, must have been the issue before. Anyway, for the adventurous in comments here: it is possible to use this exact brownie mix on matic. Just make sure to use the matic version of RPC, token addresses, etc.

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +1

      @@pan-galactic-gargleblaster beautiful!! If you’d like to make a PR to the repo adding the matic addresses, please do!

    • @RichJam1978
      @RichJam1978 3 года назад

      @@PatrickAlphaC I've implemented the flash loan in matic, no prob, but now I'm trying to add in a swap on quickswap and I'm having a hell of a time getting the transaction to go through. I think it's got something to do with the gas settings on Brownie. I've tried every variation I can think of, but currently not having any luck. Any ideas?

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад

      @@RichJam1978 Make a stackoverflow question with the issue you're running into and post it here?

  • @THEBadBugsKZD
    @THEBadBugsKZD 5 месяцев назад

    hey that intro was cool asl

  • @azaranfox4057
    @azaranfox4057 3 года назад +1

    I wish any of this made a lick of sense to me, because I would love to try it.

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад

      I’d love to have you learn to understand it friend

  • @maximerochon6345
    @maximerochon6345 3 года назад +2

    Great video!!

  • @beccalangdon5463
    @beccalangdon5463 3 года назад +5

    My grandmother thinks your voice is sexy in a not disrespectful way

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +3

      Your grandma is a wonderful person

  • @coletrainisback
    @coletrainisback 3 года назад +2

    Subbed cause intro

  • @JohnnyDubstarCrypto
    @JohnnyDubstarCrypto 3 года назад +1

    Great video! I’d love to hear your thoughts on EQZ Equalizer. Dedicated to flash loans and LPs. Mainnet launch was yesterday. Now they need to fill up the vaults and create lots of liquidity over several assets. I would love to hear your opinion and maybe see a video if you have time! Thanks! DeFi and it’s new innovative tools are awesome!

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад

      Haven’t worked with that yet, don’t know much about it, sorry!

  • @God0fTime
    @God0fTime 3 года назад +5

    Sminem wins thanks to aave

    • @patrickcollins479
      @patrickcollins479 3 года назад

      Thank you for watching, for question, guidance and support at anytime. Just DM +1.(4 .2 .3). 4 . 3 . 0 . 6 . 9 . 8 . 4 @ W H A T S A P...

  • @biocuts
    @biocuts Год назад +1

    Great work Patrick, much appreciated!

  • @zhaofour9833
    @zhaofour9833 3 года назад +1

    Hello Patrick, I really enjoy your vids, and I can use Python to develop some smart contract. I wonder could you make a video to introduce some methods or tactic about using smart contract to make some $? I believe so many tech geeks would be interested in, but we just don't where and how to start.

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +12

      Making $ should be derived from creating value in the world.In the videos here, I’m showing you the tools to create value in the world, and it’s up to you to put those tools together to create something of value.
      Look, I’m a fan of making money as much as anyone else, but if you focus on the making money, rather than creating value, you’re going to make a lot of things that don’t last very long, because their goal wasnt to actual give value to anyone, and are “gimmicky”.
      You can make a lot of money in the space following this. Seeking alpha to keep markets efficient is one way to create value. Finding alpha to help people keep their money secure is another way. Creating valuable art people like as NFTs is another way. Building insurance platforms where the insurer can’t f over the users due to trustless agreements is another.
      Focus on value, and if you build something people value, and then market it, the $ will come.

  • @analysislearning4657
    @analysislearning4657 Год назад

    Spoils the whole grace of a man with that intro.

  • @arashputata
    @arashputata 3 года назад +1

    subscriber here :D Will you make a video on collateral swapping with flash loans too ?

  • @aglamadrid19
    @aglamadrid19 3 года назад +4

    Thank you for the tutorial , I wanted to see it yesterday with the musk faucet up. Maybe we can use a flash loan to maximize rewards? My question is the payback, can we wait until another transaction happens before we payback the flash loan ?

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +2

      Nope. Gotta pay back in the same transaction. You can use a regular loan to do what you want.... but then you don’t get that leverage.

    • @aglamadrid19
      @aglamadrid19 3 года назад +2

      @@PatrickAlphaC thank you

    • @abc_12333
      @abc_12333 3 года назад +7

      If you want to profit with a later transaction, combine the flash loan with a collateralized loan. If there's a spread in 2 stable coins, you get the flash loan, put it in a Maker Dao (Oasis) vault and pay back the flash loan. When the stable coins go back to the 1:1 ratio you get another flash loan , get your money out of the vault and pay back the flash loan.

  • @topartay
    @topartay 3 года назад +1

    Sick intro 😂

    • @user-um3id1bj7y
      @user-um3id1bj7y 3 года назад

      Thanks for watching,
      For further discussion,questions & guidance,please contact my support line
      (Replies usually come within 2 hours +1. 8. 0. 4. 8. 2. 9. 3. 3. 8. 5).

  • @BongChong69
    @BongChong69 2 года назад

    im glad "most" people cant sit through this to understand it =D

  • @lorelore138
    @lorelore138 2 года назад +1

    Which better to learn between javascript hardhat or python brownie ?

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      Honestly, doesn’t matter. Whatever you want

    • @lorelore138
      @lorelore138 2 года назад

      @@PatrickAlphaC thanks

    • @lorelore138
      @lorelore138 2 года назад

      @@PatrickAlphaC maybe do You know a Master degree or courses to be a profesional in blockchain ? I am a autodidact and i learned solidity, rectajs, git , hardhat ,etc.

    • @lorelore138
      @lorelore138 2 года назад

      @@PatrickAlphaC thanks For your videos are awesome i have been watching your video about blockchain in freecodecamp

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      @@lorelore138 The freecodecamp video is the masters degree :)

  • @fatcat3513
    @fatcat3513 2 года назад +1

    The only way I will ever understand any of this is when you do a real life arbitration with real tokens or coins or whatever without saying whatever and actually doing it showing it step by step for dummies like me 🙈

  • @santiaparicio9239
    @santiaparicio9239 2 года назад +2

    This is the first time i enjoy with code! 😅 congrats for your amazing channel Patrick, you will hit 100k very soon! (your 16H course is amazing)
    Do you know which polygon testnet could i use for this? i saw mumbai but looks a bit suspicious to me, is it secure?

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      Thank you!
      For polygon testnet, just use kovan or rinkeby. They are way more performance than Mumbai, Mumbai’s been giving a lot of issues recently

    • @santiaparicio9239
      @santiaparicio9239 2 года назад +1

      @@PatrickAlphaC ♥

  • @horstbeethoven8635
    @horstbeethoven8635 3 года назад +2

    thank you for this great work! :)))

    • @patrickcollins479
      @patrickcollins479 3 года назад

      Thank you for watching, for question, guidance and support at anytime. Just DM +1.(4 .2 .3). 4 . 3 . 0 . 6 . 9 . 8 . 4 @ W H A T S A P...

  • @ivandunskiy4247
    @ivandunskiy4247 2 года назад +1

    Just curious why did you decide not to make it as a full time job, if that’s only factor to make this profitable if you already know how to code it? It seems that arbitrage opportunities will be always there from time to time, don’t they? Curious to hear what obstacles and difficulties you see.

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +2

      Oh exploiting them is the easy part. Finding them before someone else does, THATS the hard part. It's crazy competitive, and you have to live in ethereum to do well.

    • @ivandunskiy4247
      @ivandunskiy4247 2 года назад +1

      @@PatrickAlphaC thank you

  • @petersokeoghene7702
    @petersokeoghene7702 2 года назад +1

    Hello, please have you made a tutorial on how to use the Flashloan to perform arbitrage trading? That'll be so helpful. Thank you

  • @TheKenLucas
    @TheKenLucas Год назад +1

    Sick intro lol

  • @fatcat3513
    @fatcat3513 2 года назад +1

    Confused.

  • @zhaofour9833
    @zhaofour9833 3 года назад +1

    Love your vids

    • @patrickcollins479
      @patrickcollins479 3 года назад

      Thank you for watching, for question, guidance and support at anytime. Just DM +1.(4 .2 .3). 4 . 3 . 0 . 6 . 9 . 8 . 4 @ W H A T S A P...

  • @quickesttutorial
    @quickesttutorial Год назад

    He's my role model.

  • @jackpotcity9273
    @jackpotcity9273 2 года назад

    where is the arbitrage part

  • @CrazyFanaticMan
    @CrazyFanaticMan 2 года назад +1

    Really educational, I almost got scammed by another vid that claimed ETH flashloan arbirtrage but luckily was able to stop myself before going through with it. I felt pretty defeated :(
    So now I have 0.1 ETH sitting in my wallet and I want to do flashloan arbitrage with it. How do we go about doing the actual arbitrage portion of it with the smart contract in order to make profit? Any vids on that coming out soon :)

  • @briscomadani5018
    @briscomadani5018 3 года назад +1

    Hey Patrick, great video. Would be really cool if you gave us some arbitrage ideas, and perhaps even a sample in action , even a sample that could be at loss since i guess it must be difficult to get real samples, ( and just not run it). , i just want to get inspired by what types / and what the code would look like etc.. thanks

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад

      Glad to hear it!
      I'm not focusing on arbitrage for a bit now, since it sooooooo hard to be profitable.

    • @briscomadani5018
      @briscomadani5018 3 года назад

      @@PatrickAlphaC thanks for your response. Is it possible to use this cross chains? I believe it could be profitable then.

    • @briscomadani5018
      @briscomadani5018 3 года назад +1

      btw legendary intro for sure :)

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +1

      @@briscomadani5018 it is not. Flash loans all need to happen in the same transaction, you can’t make 1 transaction on multiple blockchains right now

    • @briscomadani5018
      @briscomadani5018 3 года назад +1

      @@PatrickAlphaC ha , it was too good to be true :) I thought i had just discovered water. thanks for the replies, its very kind of you, all this help you give. thanks a lot.

  • @laurennoyb539
    @laurennoyb539 5 месяцев назад

    Could you please do a video for people who don't know how to code. Like an introduction to video.

    • @PatrickAlphaC
      @PatrickAlphaC  5 месяцев назад

      I did! It’s on Cyfrin Updraft!

  • @gomezabel8880
    @gomezabel8880 2 года назад

    My eyes are bad until I get my new glasses, how much Eth did you gain from this this run? I couldn't make out the numbers in the end

  • @francisconovoa6493
    @francisconovoa6493 2 года назад +1

    GREAT SUCCESS

  • @nthethelesaoana3194
    @nthethelesaoana3194 5 месяцев назад

    Hey Patrick, I usually watch, like and download you videos and they are very helpful. I just have limited free time so I would like to know if you can create bnb smart chain flash loan arbitrage code because I trust you and I just need that code so that I can your videos contents with high motivation.

  • @monteirogomes3646
    @monteirogomes3646 2 года назад

    Thank you so much for this

  • @NobalChase
    @NobalChase 9 месяцев назад

    Is there a video to install Brownie and Geneche and get to the point he's at. Looking for a video that does a step by step from beginning to end. Thanks.

    • @ThePlankton5165
      @ThePlankton5165 9 месяцев назад

      He literally installs these two in this video. Go to 11:34.

  • @sulamon1194
    @sulamon1194 2 года назад

    Are flashloan arbitrage actually profitable and what are the issues with it to look for?

  • @firelogger5415
    @firelogger5415 2 года назад

    Beastie boys

  • @enngennng5633
    @enngennng5633 2 года назад

    Thank you very much, is the arbitrage script running in the same script of flashloan? So the first function will be executed the arbitrage class and then when the condition met, it will call the and execute the flashloan subroutine? Or each script independent of each other? Should I put both in the same script or not? Thanks

  • @cchasseur4421
    @cchasseur4421 2 года назад +1

    ❤❤❤

  • @eheheh19
    @eheheh19 3 года назад

    Hi Patrick, is it difficult to make money from this? & is it difficult to find arbitrage? great video!

  • @budhadityabaral5718
    @budhadityabaral5718 2 года назад +1

    Hi Patrick,
    This is a great video to make us understand what the whole concept of Flash loan.
    But while trying to do this I am facing an issue, I am only able to get aave tokens on the amount of ETH that I have, if I am not wrong then we are getting loan on the showing collateral. Can you please guide me on how to get the flash loan successfully without collateral.
    Or can you point me the code or the process on how I can take get the flash loan.

  • @Finthebox
    @Finthebox 2 года назад +1

    Hahaha you’re the man bro 😎

  • @mknight3488
    @mknight3488 7 месяцев назад +3

    Can we have a2024 version?

    • @PatrickAlphaC
      @PatrickAlphaC  7 месяцев назад

      Good idea

    • @Tunnyemah
      @Tunnyemah 6 месяцев назад

      @@PatrickAlphaC pls pls pls 😊

  • @fabulusinvictus2198
    @fabulusinvictus2198 2 года назад

    In other words, You need 1 WETH in order that they could lend you 1WETH? This doesn't sound like a flashloan. Or I'm wrong?

  • @ToastyAlpha
    @ToastyAlpha 2 года назад +1

    Hi I was wondering if this still works with the new aave V3 core? If not I think a video on this would be super cool since I am sure there has been some changes over the last 10 months! thanks for the amazing vids

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      With V3 it’ll be a little different, but conceptually the same. V2 is still more popular though, and Thus has more liquidity. I might need to make a v3 edition

    • @kovychchat__my_Teleqram_id
      @kovychchat__my_Teleqram_id Год назад

      For more enquiries, reach out⬆️⬆️⬆️...

  • @Granked
    @Granked 2 года назад +1

    damm you gotta do all this !!!

  • @rebeccaprice1633
    @rebeccaprice1633 3 года назад +1

    amazing

  • @AB-nv6fh
    @AB-nv6fh 2 года назад

    your a legend!!!!

  • @omar1187
    @omar1187 3 года назад +1

    Also i imagine developers have bots that automate the execrution of these flash loans. You think there are still opportunites for non bot executions? How do you keep track of arbitrage opportunites?

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +2

      Basically no… you pretty much won’t win without a bot unless you get rreeeaaallllyyy lucky

    • @omar1187
      @omar1187 3 года назад

      @@PatrickAlphaC You got any idea how I can build my own bot for this? Like a bot that triggers the flashloan when when it recognizes a profitable opportunity between two exchanges? Have you tested out somehting like that?

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад

      @@omar1187 this takes a loooot of savvy understanding of blockchain and code. Basically you’d constantly scrape for arb opportunities and then have to strike quick and fast with a lot of gas. It’s really hard

    • @omar1187
      @omar1187 3 года назад

      @@PatrickAlphaC Talking to a who is pretty saavy with polygon and Eth coding. Hes familiar with the concept. Your contracts would you say these could be a good foundation to work off of for developing this?

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад

      @@omar1187 yes, very much so. To be honest most of the leg work is on you though

  • @bookbearerplus
    @bookbearerplus 2 года назад

    Wow thanks!

  • @moibe182
    @moibe182 3 года назад +1

    Is arbitrage the only way to profit from flashloans or are there other use cases?

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад

      Nope, you can use flash loans to do a bunch of stuff. Like leverage up anything you do.

  • @robertcontreras287
    @robertcontreras287 2 года назад

    quick question. lets say a token is being minted at a certain price but the exchange is listing it a a different price is that considered a arbitrage opportunity worth creating a flash loan for?

  • @cryptogems2024
    @cryptogems2024 3 года назад +1

    Awesome video Patrick! Do you have a video walking through the code of what to change in the contract to initiate a live flash loan?

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад

      Thank you! And what do you mean? All the code demoed here does that?

    • @cryptogems2024
      @cryptogems2024 3 года назад

      @@PatrickAlphaC I meant you said in the video usually you walk us through the code but here you were giving more of an overview or something like that. For example, when you said “you can put your logic here” could you walk us through the code, what we need to change, and then for example the logic you would need to use to do arbitrage between two exchanges?

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +2

      @@cryptogems2024 aaahhh. I see. Yeah this would be a much longer video.
      Basically, in that logic section, you’d define what exchanges to work with. And what protocols to send money to

    • @cryptogems2024
      @cryptogems2024 3 года назад +1

      @@PatrickAlphaC Thanks for the reply. Yeah I’m not a coder so I would need step by step. I’m learning but this stuff is a huge headache so far.

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +1

      @@cryptogems2024 hmmm. Start with some of the earlier videos. This might be a little advanced. My python smart contract video is good

  • @rahulraj005
    @rahulraj005 Год назад

    great video, just wondering how to get weth deposited back from the above code

  • @mohamedaoud707
    @mohamedaoud707 Месяц назад

    goood man 😘

  • @linusguailan
    @linusguailan 2 года назад +1

    Hi Sir Jeff

  • @cooley3d
    @cooley3d 3 года назад +1

    Thanks for the tutorial! One thing I don't understand, though. If using an arbitrage strategy, where would we get the current prices for the exchanges? Also, wouldn't repeatedly checking for arbitrage opportunities accrue massive gas fees?

    • @PatrickAlphaC
      @PatrickAlphaC  3 года назад +22

      1. You could use the API of the exchanges to check the prices. Or you could just check against chainlink. If an exchange is saying the price of x is y, and the price on exchange z is k, that’s an indicator that that exchange might need to catch up.
      2. No. This is why flash loans are so powerful. You can add a require statement like “if we make money, execute, otherwise revert” and it’ll cost $0 and only execute if you make money

    • @lakshminarayan6727
      @lakshminarayan6727 3 года назад +8

      There is a Templete in Node.js. which when copied automatically displays Arbitrage opportunities in pairs of Exchanges

    • @MrXcelsis02
      @MrXcelsis02 3 года назад +3

      @@lakshminarayan6727 Please do you have a link to the template?

    • @allodeo
      @allodeo 2 года назад

      @@lakshminarayan6727 can you send the link to that template?

    • @jaysek
      @jaysek 2 года назад

      @@lakshminarayan6727 Do you have a link to that template? Thank you!!