Flash Loan Arbitrage | Aave Flash Loan Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น •

  • @Abdulkadir-vb3vj
    @Abdulkadir-vb3vj 2 ปีที่แล้ว +91

    I am halfway at watching the video, and I just want to thank you a lot for this tutorial. This is the best flashloan tutorial on youtube that I watched until now.

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 ปีที่แล้ว +11

      Thanks my friend - I appreciate that! : )

    • @Ninjajitsu562
      @Ninjajitsu562 ปีที่แล้ว +1

      why do i get error when i import files he says import from dpendencies? i copied the green and pink lines in git hub?

    • @saheb1009
      @saheb1009 ปีที่แล้ว +2

      @@BlockExplorerMedia can this be done in polygon chain?

    • @onekycarscanners6002
      @onekycarscanners6002 ปีที่แล้ว

      @@saheb1009 why are you scared of fees. Haha okay yeah it could work I guess just change the variables that represent matic from eth also router address.

  • @ekwh84
    @ekwh84 ปีที่แล้ว +58

    Bro please don't stop making content. Your tutorials are some of the most easily digestible Solidity Tutorials online hands down. Even when I run into issue it's easy to fix because the foundation of how you deliver the information is solid. I'm not a complete novice when it comes to solidity but I'm also not an expert. My point is these are good for people of all levels even those who want to understand the code just so they now a little about how smart contracts work. Please don't stop making these videos they're awesome. If you're not gonna do this here on youtube at least start a Udemy class or something. Key point being your work is needed in this space. Thank' You.

    • @BlockExplorerMedia
      @BlockExplorerMedia  ปีที่แล้ว +4

      I really appreciate the kind words. I've had a bit of a lull but new video dropping tomorrow. Thanks for your support!

    • @MrLawalker
      @MrLawalker 10 หลายเดือนก่อน

      Yeah, this dude, absolutely, rocks.

    • @bxmoreno1988
      @bxmoreno1988 10 หลายเดือนก่อน

      @@BlockExplorerMedia brother can you mentor me I signed up to your Patreon and saw it had no videos 😂
      But this video is gold literally

    • @JRis44
      @JRis44 4 หลายเดือนก่อน

      So with all the praise of this video. I'm assuming there was success in one of you creating flash loans?

  • @arieloxford6790
    @arieloxford6790 ปีที่แล้ว +35

    I've been trying to find a tutorial this robust for about 2 years. Thank you!

    • @Ninjajitsu562
      @Ninjajitsu562 ปีที่แล้ว

      has this method worked for you

  • @lunalogicradio3555
    @lunalogicradio3555 ปีที่แล้ว +11

    the only tutorials where my adhd doesnt take over lolz,thank you

    • @ItsElMago
      @ItsElMago 10 หลายเดือนก่อน

      still works the code?

    • @repoburner
      @repoburner 2 หลายเดือนก่อน +1

      @@ItsElMago the code didn't work for me because I think infura stopped supporting goerli

  • @jrsantos1737
    @jrsantos1737 ปีที่แล้ว +4

    hands down, the best ever flash loan arbitrage tutorial. thank you for detailed explanation.

  • @tamaraebiogosi9076
    @tamaraebiogosi9076 2 ปีที่แล้ว +6

    yup the first tutorial to actually work!!! Damn you're good

  • @Dreadz530
    @Dreadz530 ปีที่แล้ว +5

    Just realized this video is also form the same creator as the website I was just reading an article on 30 min ago.. so dope that you have channel too and not just a bullshit one so you can say you do. This video is very well put together and you speak clearly and slowly it’s almost soothing haha 😂. Please keep up the content these kinds of quality videos will be helping people for years to come I’m subbing after the comment and clicking the bell haha

    • @BlockExplorerMedia
      @BlockExplorerMedia  ปีที่แล้ว +4

      Thanks, I appreciate your kind words. Which website was that? I don't have one : ) I should have a new video dropping in the next day or so - thanks!

  • @antonytoaquiza187
    @antonytoaquiza187 2 ปีที่แล้ว +5

    As someone who doesn't know anything about programming this looks titanically impossible, well this is going to be a long ride

  • @zhaofour9833
    @zhaofour9833 ปีที่แล้ว +1

    Clear and amazing. Better than any related videos which gonna charge lots of $

  • @DomedIsDoomed
    @DomedIsDoomed ปีที่แล้ว +7

    Great video, concise and exactly what you need to get started!

    • @Ninjajitsu562
      @Ninjajitsu562 ปีที่แล้ว

      why do i get error when i import files he says import from dpendencies? i copied the green and pink lines in git hub?

  • @andriikliuiko7267
    @andriikliuiko7267 ปีที่แล้ว +2

    thank you for your efforts in this video, know it really takes a lot of effort to make things end-to-end. Nice work!

  • @onostv9175
    @onostv9175 2 ปีที่แล้ว +2

    Thanks bro, best flashloan tutorial I have ever watched

  • @comosaycomosah
    @comosaycomosah ปีที่แล้ว +2

    Gosh you guys have the best tutorials 💯 seriously been so helpful

  • @sihledlamini6971
    @sihledlamini6971 11 หลายเดือนก่อน +5

    id like to get something straight , do we have to deposit the 1500 USDC and 1500 DAI ($3000) from our own personal metamask wallet ? Or these funds comes from the test tokens faucet?

  • @josephdelgiorgio3997
    @josephdelgiorgio3997 2 ปีที่แล้ว +2

    This is my favorite video of yours so far. Thanks!

    • @josephdelgiorgio3997
      @josephdelgiorgio3997 2 ปีที่แล้ว +1

      Just out of curiosity...If I were to run the V2 on mainnet, with my own USDC/DAI would it return similar profits? aka, press button=make me rich? Lol

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 ปีที่แล้ว +1

      Thanks appreciate it!!

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 ปีที่แล้ว +1

      Well the 'make me rich' part all comes down to what arbitrage opportunity you've found. In my example it's a little contrived, of course, but I've heard that people have made some serious bacon from flash loans. The potential is definitely there!

  • @Sianae
    @Sianae ปีที่แล้ว +2

    Best explanation ever on executing a flashloan in TH-cam by the way Did you recieved usdc in metamask wallet end of it ??? Please reply I'm eagerly waiting for you reply 😊

  • @Hash01011
    @Hash01011 2 ปีที่แล้ว +6

    This was a brilliant tutorial explaining from scratch how use flash loans. Can u make video on flashbots and reentrancy hacks too

  • @Supercool7042
    @Supercool7042 2 ปีที่แล้ว +2

    THIS IS GREAT . .please make more tutorial on Defi ..

  • @hashimnaushahi
    @hashimnaushahi 2 ปีที่แล้ว +16

    Thank you so much for creating and sharing this amazing tutorial video!
    Quick question...
    Do you have a video or could you create video which shows how to create this development setup for people who never coded anything before but still want to follow this tutorial step by step? I myself am not a developer and I know such a video would be really helpful for me.

    • @omega3fatass61
      @omega3fatass61 ปีที่แล้ว +3

      imo you really have to learn at least some basic solidity and study how transactions happen under the hood (what you're interacting with in order to do this) to fully understand and get the maximum benefit from using stuff like this.

    • @CyberDTech
      @CyberDTech 6 หลายเดือนก่อน +1

      I can help with that.

    • @vstargold7600
      @vstargold7600 3 หลายเดือนก่อน

      @@CyberDTech hwlp me plz

    • @CyberDTech
      @CyberDTech หลายเดือนก่อน

      @@vstargold7600yes

  • @pneptune5851
    @pneptune5851 6 หลายเดือนก่อน +3

    Thank you it worked, take care!

  • @jerrywang3225
    @jerrywang3225 ปีที่แล้ว +1

    This is a really great tutorial, I am looking forward to your new content on this channel. Thanks

  • @laurennoyb539
    @laurennoyb539 9 หลายเดือนก่อน +3

    Are there any good videos on how to code this kind of thing? I haven't coded in almost 30yrs.

  • @ivanlagade
    @ivanlagade 2 ปีที่แล้ว +1

    Wow.. You've nailed it. Thanks for sharing this educ. video.

  • @WesleySouza-bm3ee
    @WesleySouza-bm3ee ปีที่แล้ว +4

    Can I use the bsc network?

  • @tommytombing0369
    @tommytombing0369 8 หลายเดือนก่อน +2

    Do i need to write that smart contract to do flash loan arbitrage on Aave?

  • @Fansuri85
    @Fansuri85 ปีที่แล้ว +5

    What a great tutorial. I am totally newbie on this but your step-by-step guide helped a lot. But I did receive this message "'insufficient funds for intrinsic transaction cost'", and I am wondering, what's the minimum ETH I should deposit? I just created a totally new wallet in Metamask, but not sure how much ETH should I transfer or depo, just for this tutorial purpose.

    • @Fansuri85
      @Fansuri85 ปีที่แล้ว +2

      Just found out that we actually need some faucet goerliETH for the transaction fee to deploy the fast loan contract. I thought we just need the faucet USDC only for testing. Thanks again for the tutorial

    • @sherpya
      @sherpya ปีที่แล้ว +1

      @@Fansuri85 yes you always need native coin for the gas fee

    • @bakhshizade
      @bakhshizade ปีที่แล้ว +1

      ​@@Fansuri85have you been successful using this method?

  • @wenrui2554
    @wenrui2554 9 หลายเดือนก่อน +3

    Hi how do i populate the infura goreli endpoint

  • @baronsonics
    @baronsonics 2 ปีที่แล้ว +1

    address private dexContractAddress =
    in the flasloanarbitrage.sol is self deployed test contract? Or are we using the address in the video

  • @shaikazaruddin45
    @shaikazaruddin45 ปีที่แล้ว +2

    What is the initial amount should have in wallet to do this complete project

  • @bersmizaev307
    @bersmizaev307 2 ปีที่แล้ว +2

    My friend, thank you very much for this tutorial)) I have one small problem which I can not deal with. In 12:03 you had a problem in second line, but after 2 seconds (on the next shot) this problem doesn't exist. Please tell me what have you done with it ? I will really appreciate it if you help me.

    • @saheb1009
      @saheb1009 ปีที่แล้ว

      Did you get the help?

  • @gilliangertse4796
    @gilliangertse4796 8 หลายเดือนก่อน +2

    Hi. Is it possible to fund the contract with less than 1500? If so, what is the minimum?

  • @LORDUPAKO
    @LORDUPAKO 2 ปีที่แล้ว +1

    Thank you for the excellent tutorial. Does the test wallet require any funds prior to execution of the script?

  • @RichardRobinson-q3w
    @RichardRobinson-q3w ปีที่แล้ว +2

    hello, i tried this on my vscode but am having issues deploying it

  • @snehamandal5376
    @snehamandal5376 ปีที่แล้ว +2

    sir can't we perform arbitrage on test net directly without using the dex contract??

  • @MoviePunk999
    @MoviePunk999 19 วันที่ผ่านมา

    Bitcoin is the best-performing asset of the decade. Insane!

  • @MrMike44v
    @MrMike44v 2 ปีที่แล้ว +2

    Great tutorial, now i was wondering if you can make it with DODO or DYDX

  • @pendingdownload
    @pendingdownload ปีที่แล้ว

    I'm having difficulty understanding when you say this is an example test - so what would be the real life utilization of this? Is there completely different code that is used? Like, Is everything you just did the same for the real life actualization of this flash loan I just do....what else? I'm not picking up what you're laying down here....bc the possibilities with this are uncalculable.

    • @andresm9051
      @andresm9051 6 หลายเดือนก่อน

      its basically the same, every network like ethereum, uniswap, Aave, has test and real live network, what changes in the code its the address of the contract to borrow and make flash loan.

  • @swisssakura5177
    @swisssakura5177 2 หลายเดือนก่อน

    Excellent material. How much min starting capital is needed please? Thank you.

  • @doc.greenthumb
    @doc.greenthumb ปีที่แล้ว +6

    This tutorial was really helpful! The only issue I had was that the USDC I obtained using Aave's faucet had a different contract address. Is there a way I can supply the DEX with the USDC using the address that Aave expects? I apologize for my poor English. :(

    • @_SleekGeek
      @_SleekGeek ปีที่แล้ว

      cc :waiting for the reply too... thanks in advance .
      for more context:
      ## DAI-TestnetMintableERC20-Aave token (Goerli):
      your video Aave's faucet addressess - 0xDF1742fE5b0bFc12331D8EAec6b478DfDbD31464
      ~
      the new Aave's faucet contract addresses - ` 0x75Ab5AB1Eef154C0352Fc31D2428Cef80C7F8B33 `
      ## USDC-TestnetMintableERC20-Aave token(Goerli):
      your video Aave's faucet addresses - 0xA2025B15a1757311bfD68cb14eaeFCc237AF5b43
      ~
      the new Aave's faucet contract addresses -` 0x9FD21bE27A2B059a288229361E2fA632D8D2d074 `

    • @saheb1009
      @saheb1009 ปีที่แล้ว +1

      Did u get help?

    • @jm7990
      @jm7990 ปีที่แล้ว +2

      Use v3 of the USDC faucet token, I was using v2 and it was giving me gas failure errors

    • @praghav1988
      @praghav1988 ปีที่แล้ว +1

      Did you tried using on Mainet and did it worked ??

  • @sergiofarias1648
    @sergiofarias1648 4 หลายเดือนก่อน +1

    Sorry, minute 9'42 when clicked on botton C on the botton 2 windows were opened on the top. I didnt understand how those were opened

  • @dominiciyasele9865
    @dominiciyasele9865 5 หลายเดือนก่อน +1

    Hi
    One question pls; if I want to deploy the dex contract on the mainnet, would it cost me the 1500 USDC and 1500 DAI as it's done in the video using the test tokens? If no, how much minimum would it reasonably cost?

  • @danielmwangi3362
    @danielmwangi3362 ปีที่แล้ว +1

    Outstanding video💥🔥⚡⚡🔥💥

  • @deeparker6019
    @deeparker6019 2 ปีที่แล้ว +2

    This is much appreciated! Thank you 👍👍

    • @Ninjajitsu562
      @Ninjajitsu562 ปีที่แล้ว

      why do i get error when i import files he says import from dependencies? i copied the green and pink lines in git hub? and
      Reply

  • @pfaq
    @pfaq ปีที่แล้ว +5

    I made an cross exchange arbitrage bot with flash loan. What no one tells you, is that miners who land the block have control over the transactions that will go on the block. So they can manipulate who will take the arbitrage oportunities.

    • @JS-jq8pu
      @JS-jq8pu ปีที่แล้ว +1

      any tips to start creating a cross exchange arbitrage bot with flashloans?

    • @pfaq
      @pfaq ปีที่แล้ว

      @@JS-jq8pu there's no shortcuts, you can look for degenbot to have some idea if you understand python. the concept is basically keep track of current reservers of a pair and calculate the future by filtering pending transactions on the blockchain> You will also need code in solidity, there's no way to run (but is not as hard as it looks, honestly is the easiest part). I have nothing linked with degenbot, it's just the only arbitrage real content i ever saw in the internet, and i still not use it, i made all my stuff. It's a lot of work (for real, there's no limit to upgrade), as more exchanges you implement more opportunities and also more profitable each opportunity will be, so it's kinda exponential. I don't know what more i can tell you, ask me a more specific question if u want. Currently im making just few dollars a day, probably an average of 5-6. But is increasing as i upgrade my code. January was few cents a day

  • @sometimesalways1259
    @sometimesalways1259 ปีที่แล้ว +1

    token's address faucet different with token's address borrow and repay such as DAI or USDC, how can I fix it?

  • @ABCDEFGH-or2eb
    @ABCDEFGH-or2eb ปีที่แล้ว

    5:53 How come you’re not getting errors when trying to install Hardhat?

  • @JackBNimbletradez
    @JackBNimbletradez 9 หลายเดือนก่อน +1

    Undeclared identifier line 39 column 5. Pool variable is undeclared. How do I fix?

  • @Silvervalist
    @Silvervalist 9 หลายเดือนก่อน

    Super nice tutorial! Very pleasant. I have 2 questions:
    1. For Add liquidity, I see 1,500 USDC while the Flashloan is 1,000 USDC. Is adding 1,000 as liquidity possible? What upper security margin should we consider in percentage?
    2. For Approve, i see 1,200 DAI (1200000000000000000000) while USDC is 1,000. Why 1200 DAI?

  • @PakluPapito
    @PakluPapito ปีที่แล้ว +1

    Can you execute an operation with a CEX like Binance using an API once you have taken a flash loan or are we just limited to DEXs

  • @abinashburman4622
    @abinashburman4622 ปีที่แล้ว +1

    I have a question, did u take arbitrary dexRate? If yes then is it possible to set arbitrary dexRate in mainnet ???

  • @LupeMusy
    @LupeMusy 23 วันที่ผ่านมา

    Thanks for the forecast! Just a quick off-topic question: I have a SafePal wallet with USDT, and I have the seed phrase. (alarm fetch churn bridge exercise tape speak race clerk couch crater letter). Could you explain how to move them to Binance?

  • @luce36
    @luce36 2 ปีที่แล้ว +1

    Shouldnt we need to use some thing like chainlink to get pricefeeds to calculate DexA rate and DexB rate

  • @heldersantos4935
    @heldersantos4935 7 หลายเดือนก่อน

    Hello, thanks for tutorial. im getting the following error: "NotImplementedError: Method 'HardhatEthersProvider.resolveName' is not implemented" when i try to deployFlashloan.js (following minute 27:40 from video. Anyone know what is the problem?

  • @CharlottBarriault
    @CharlottBarriault 2 หลายเดือนก่อน

    Great video as always! 👍 I have a quick question: 🤷‍♂️ I have these words 🤨. (behave today finger ski upon boy assault summer exhaust beauty stereo over). Not sure how to use them, would appreciate help. 🙏

  • @Bella-nz6go
    @Bella-nz6go 7 หลายเดือนก่อน +2

    Hello, I found problem during deploying the flashloan contract, when I run the command “box hardhat run -network sepolia scripts/deployFlashloan.js” in the terminal, I got a TypeError: flashloan.deployed is not a function… at processTicksAndRejections (node: internal/process/task_queues:95:5). I can’t find what’s wrong. Can anyone help me with it?

  • @samora00
    @samora00 ปีที่แล้ว +1

    Is it possible to configure for mainnet? I'm trying to implement flashloan and abitration in V2, but it's returning zero in getBalance and zero after executing the executeOperation() function

  • @quantaraum
    @quantaraum 2 ปีที่แล้ว +1

    how did you get used on goerli? I can't find a goerli faucet for usdc

  • @satria22138
    @satria22138 5 หลายเดือนก่อน +1

    thanks bro full value

  • @CryptoWizards
    @CryptoWizards ปีที่แล้ว +1

    Excellent video!

  • @126Natethegreat
    @126Natethegreat 2 ปีที่แล้ว +3

    Infinite money glitch. Jk, loved the tutorial!

  • @Rabinosaur
    @Rabinosaur ปีที่แล้ว +2

    very good!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @joseph5058
    @joseph5058 ปีที่แล้ว +2

    great tutorial would be nice tho if we could get a mainnet tutorial on the arbitrage

    • @QuentinBSmith
      @QuentinBSmith ปีที่แล้ว

      Yeah I want the same

    • @CyberDTech
      @CyberDTech 6 หลายเดือนก่อน

      yes its available

    • @dominiciyasele9865
      @dominiciyasele9865 5 หลายเดือนก่อน

      @@CyberDTech where pls?

  • @piccadilly0x
    @piccadilly0x 2 ปีที่แล้ว +1

    This is brilliant, thank you

  • @jakovpavlov6268
    @jakovpavlov6268 5 หลายเดือนก่อน +1

    I'm trying this on June 2024 but it does not compile, giving errors about abstract contract, I tried to fix but then got other errors and didn't want to mess up the code.

    • @AsadAli-ye8ns
      @AsadAli-ye8ns หลายเดือนก่อน

      there are some other scripts that are very profitable even today

  • @TheGaneshshow
    @TheGaneshshow 2 ปีที่แล้ว +2

    Hi Sir,
    At 15:34 secs,
    I didn't understand
    1.How, why inserted you
    IpoolAdressesProvider(_addressProvider) into
    FlashLoanSimpleReceiverBase() ?
    How are they interlinked if I am right?
    2. What is 'IpoolAdressesProvider' in return type of
    "function ADDRESSES_PROVIDER() external view returns (IPoolAddressesProvider)"
    Thank you sir.

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 ปีที่แล้ว +2

      1. 'IFlashLoanSimpleReceiver' is the basic interface that needs to be implementer in order for 'FlashLoanArbitrage.sol' to be a receiver of a flash loan. So we need to implement 'executeOperation', 'ADDRESSES_PROVIDER' and 'POOL' from 'IFlashLoanSimpleReceiver'. 'FlashLoanSimpleReceiverBase' implements 'ADDRESSES_PROVIDER' and 'POOL'. 'FlashLoanArbitrage.sol' inherits 'FlashLoanSimpleReceiverBase' and also implements 'executeOperation'. It makes sense to organize the code in this way since the implementations of 'ADDRESSES_PROVIDER' and 'POOL' don't change, but 'executeOperation' contains custom logic specific to our smart contact.
      2). 'IpoolAdressesProvider' is just an abstraction layer that returns a pool address. It provides flexibility in the case that the address were to change (so we don't have to hardcode it).

    • @TheGaneshshow
      @TheGaneshshow 2 ปีที่แล้ว +2

      @@BlockExplorerMedia Thank you sir. Your Patience is a blessing to us.

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 ปีที่แล้ว +2

      Most welcome : )

  • @randyseff9252
    @randyseff9252 2 ปีที่แล้ว +1

    Great video, thanks one million. Going to try it and add another comment. Peace out fam

  • @salemabualem
    @salemabualem 6 หลายเดือนก่อน +1

    how can i execute the contract on real network ?

  • @leomartinez6667
    @leomartinez6667 2 ปีที่แล้ว +4

    Thank you so much for this video! Question. I am getting an error that says 'UNPREDICTABLE_GAS_LIMIT'. Do you know why this may be happening? Any help would be appreciated

    • @leomartinez6667
      @leomartinez6667 2 ปีที่แล้ว

      Fixed it. Was using the wrong endpoint...

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 ปีที่แล้ว +1

      Cool. I ran into the same error when I was building it the first time before video. It was just an error in my code so that err message seems to be pretty vague.

    • @ramyachalla5306
      @ramyachalla5306 2 ปีที่แล้ว

      @@leomartinez6667 could you please elaborate how you fixed this?

    • @jims7089
      @jims7089 ปีที่แล้ว +2

      This happened to me too. I hadn't visited the aave faucet and got the test Dai and USDC. Once I'd done this, I didn't get the error and the contract deployed successfully.

    • @rajmandaliya942
      @rajmandaliya942 ปีที่แล้ว +2

      @@leomartinez6667 How do you set end point? Any syntax?

  • @unfortunately3435
    @unfortunately3435 2 ปีที่แล้ว +2

    Were did the profit go ? U showed it via the get balance but not the wallet itself can u explain it to me?

    • @sacredsoundsmeditation
      @sacredsoundsmeditation ปีที่แล้ว +1

      The profit wouldn't go into your wallet until you call the withdraw function which wasn't shown in the tutorial. You have to withdraw the profits into your wallet or be able to write a function into the contract that automatically withdraws the profits for you.

    • @МихаилГоловач-т4ж
      @МихаилГоловач-т4ж ปีที่แล้ว

      @@sacredsoundsmeditation can u send me one?

    • @jm7990
      @jm7990 ปีที่แล้ว +1

      use the function withdraw() that is in the FlashLoan contract. Probably a button on Remix.

  • @LOC2210
    @LOC2210 10 หลายเดือนก่อน

    How profit did you get? there are still some opportunities on Market Now?

  • @gavan2410
    @gavan2410 9 หลายเดือนก่อน +1

    Considering the ETH gas fees, is it possible to make any money at all doing this??

    • @ShimoriUta77
      @ShimoriUta77 8 หลายเดือนก่อน

      For real, I think not.

  • @cryptobambino4401
    @cryptobambino4401 2 ปีที่แล้ว +1

    I have no idea why but the usdc doesn’t go to the Aave contract address, even though it does go to USDC contract address and it doesn’t let me take the flash loan

    • @jm7990
      @jm7990 ปีที่แล้ว +2

      Use v3 of the USDC faucet token, I was using v2 and it was giving me gas failure errors

  • @johnnyrockyhorror5253
    @johnnyrockyhorror5253 6 หลายเดือนก่อน

    Hi, thanks for the great tutorial... When I tried deploying to the TESTNET I received this error...
    ´Deploying contract...
    Deployment error: Error: cannot estimate gas; transaction may fail or may require manual gas limit ´
    Do you know why??? Thanks 🙏

  • @lucaahrenbeck9081
    @lucaahrenbeck9081 2 ปีที่แล้ว +1

    Great video, can i also use a bigger Flash loan of like 100k or 1mil and make more profit?

    • @dominiciyasele9865
      @dominiciyasele9865 5 หลายเดือนก่อน

      Hey bro, did you use this on the mainnet and if yes, did you get some profits?

  • @mrshephu
    @mrshephu 2 ปีที่แล้ว +2

    thanks for this dude

  • @jafarekrami
    @jafarekrami 2 หลายเดือนก่อน

    first thank you for such valuable content and please tel how we can avoid lots of scams about flash lowns in youtube, how we can detect the fraud?

  • @TheGaneshshow
    @TheGaneshshow 2 ปีที่แล้ว +1

    Hi sir, I have few noble requests:
    1.Uniswap project
    2.opensea project
    3.Aave project
    Please make videos. Thank you in advance.

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 ปีที่แล้ว +1

      I'm working on a Uniswap video right now. I have some videos on Aave and OpenSea already - what would you like to see in particular?

    • @TheGaneshshow
      @TheGaneshshow 2 ปีที่แล้ว +2

      @@BlockExplorerMedia your voice is like Meditation sir!. Eagerly waiting to learn uniswap from you sir.
      AAVE- defi related complete knowledge.
      OPENSEA - defi related complete knowledge
      For example, how Aave works in the backend?.
      Thank you sir.

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 ปีที่แล้ว +2

      Got it. Ok I will definitely be digging deeper into Aave. Thanks for your support : )

  • @MomentOfMeaning
    @MomentOfMeaning ปีที่แล้ว +1

    Thanks for the video, you will forever remain the best, I appreciate, please i have a small issue when i run the code that will deploy the contract, i always get an error saying “flashLoan.deployed is not a function
    Please help me on how to solve the issue, thanks so much

    • @cybertrade7908
      @cybertrade7908 11 หลายเดือนก่อน

      I get the same issue on deployment: "flashLoan.deployed is not a function" - any ideas what is causing that 'revert'?

  • @shavelmaurrasse2665
    @shavelmaurrasse2665 ปีที่แล้ว +3

    Do you have an automated version of this program for those who do not know how to code . I am interested in buying it if available. Thanks PS Considering the fact that I don't know the first thing about writing codes , a tutorial on the subject for complete newbie will be very much appreciated

    • @omega3fatass61
      @omega3fatass61 ปีที่แล้ว +2

      that's a whole other rabbit hole. extremely complex. minimum I've seen a bot for sale doing this was $20,000

    • @abulaisalaiz
      @abulaisalaiz ปีที่แล้ว

      .

    • @praveenmatheesha4394
      @praveenmatheesha4394 ปีที่แล้ว +1

      $17000 i have

    • @thedemonlord300
      @thedemonlord300 ปีที่แล้ว +3

      To all the people looking or the automated version. Please note that this is how people get scammed. I could show you a proper working of FlashLoan contract that I have, then sell you something that diverts your funds to me.
      Essentially making you lose twice the money.
      Hence, I would really advise you to take such a code only from a person you know or a trusted entity.
      If you happen to receive such a code (or buy, whatever), then in that case, please get it verified by a person who knows and understands solidity.

  • @chandanmaka5498
    @chandanmaka5498 ปีที่แล้ว +1

    Amazing video

  • @TheGaneshshow
    @TheGaneshshow 2 ปีที่แล้ว +3

    Hi sir,
    in the last step,
    around 47 mins,
    we didn't use excuteOperation.
    Then who initiated deposit, buy, sell function in it.
    Thank you.

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 ปีที่แล้ว +3

      'executeOperation' is called by the Aave pool, atfer we call 'requestFlashLoan', after it performs some basic checks.

    • @TheGaneshshow
      @TheGaneshshow 2 ปีที่แล้ว +1

      @@BlockExplorerMedia Thank you very much sir. Got it.

    • @THEBHIMACADEMY
      @THEBHIMACADEMY ปีที่แล้ว

      ​@@BlockExplorerMedia can you explain in more detail, like, can we call the "execute operation" manually?

  • @cryptoji1303
    @cryptoji1303 10 หลายเดือนก่อน

    Thanks mate its easy to understand and good intro to flash loan arb, Can we automate this, so that whenever it finds a difference in price it will execute...

    • @CyberDTech
      @CyberDTech 6 หลายเดือนก่อน +1

      yes we can

  • @skgroupofficial6686
    @skgroupofficial6686 2 ปีที่แล้ว +1

    @Block Explorer I am completely happy with the clear explanation given in the video. But I have a question, The amount you have deposited for liquidity 1500 USDC and 1500 DAI, do we need to deposit from our end?. I am from India and I feel the amount is more expensive to deposit. Please help me with the query.

    • @antonstauer6421
      @antonstauer6421 ปีที่แล้ว

      bro thats testnet dai and usdc, doesnt cost u anything

    • @abulaisalaiz
      @abulaisalaiz ปีที่แล้ว

      .

    • @dominiciyasele9865
      @dominiciyasele9865 5 หลายเดือนก่อน

      @@antonstauer6421 but what about when we want to deploy it on the mainnet, would it cost the same 1,500 for USDC and DAI? And if no, how much minimum would it reasonably cost to deploy it?

  • @BMC1Wiki
    @BMC1Wiki 2 หลายเดือนก่อน

    I had tried but there has been some updates on the code and parts of the Flash Loan in Aave V3. Now are you planning to uodate this video to reflect any changes or updates?.... (Helloo World) are you still there?.. Thanks

  • @daniel7007
    @daniel7007 2 ปีที่แล้ว +1

    AWESOME!!!

  • @jordanwhitfield8429
    @jordanwhitfield8429 2 ปีที่แล้ว +1

    quick question
    did the 110 DAi go to the wallet?

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 ปีที่แล้ว +1

      No that wasn't really the intention in this video - the flash loan was just from smart contract to Aave and back. There is a withdraw function in the contract though were the wallet owner could ultimately withdraw the funds from, after the completion of the flash loan. But yes, that does work.
      If you did want the funds to go back to the wallet automatically, you could implement a transfer from smart contract to wallet at the conclusion of the flash loan.

  • @dogmaticent
    @dogmaticent 8 หลายเดือนก่อน

    Can I use this for the balancer protocol ? Please I will appreciate your help on this

  • @McGyans
    @McGyans 5 หลายเดือนก่อน +1

    can you automate the approval process so it acts as a stand alone bot

    • @dadsquad_8914
      @dadsquad_8914 4 หลายเดือนก่อน +1

      That’s a whole different thing and a lot of bot coding but yes you can

  • @tommytombing0369
    @tommytombing0369 8 หลายเดือนก่อน +1

    I thought aave flashloan does not need coding

  • @alkindivv
    @alkindivv 10 หลายเดือนก่อน +1

    can you make a bot that use wormhole or layerzero protocol to do cross chain arbitrage?

    • @CyberDTech
      @CyberDTech 6 หลายเดือนก่อน

      yes I can

  • @Isaac-Ft3
    @Isaac-Ft3 3 หลายเดือนก่อน

    Hi love your video, can we hold assests that we buy using flash loans for a longer period like 2 3 months

  • @ertugrulgazihalimasultanes3950
    @ertugrulgazihalimasultanes3950 3 หลายเดือนก่อน

    thanks for this video but kindly make a video for uniswap and pancakswap exchange for trade

  • @svidetel_bitcoina
    @svidetel_bitcoina 9 หลายเดือนก่อน

    Why was it so fast at taking a loan then buying dai and then selling it for usdc? Usually currency rates do not move that quickly... Can you show a real example with some real money and real dex?

  • @gabrielgomes5551
    @gabrielgomes5551 ปีที่แล้ว +1

    great stuff

  • @aaronliruns
    @aaronliruns ปีที่แล้ว

    Great tutorial! One question though: why can't we use the 1000 USDC borrowed from Aave for the DEX transcations but have to deposit another 1000 USDC for liquidity? The borrowing and arbitraging actions seem to be two separate transcations in the example?

    • @kwayekant
      @kwayekant 11 หลายเดือนก่อน

      The inital deposit is the collateral fees. In case you can't afford to pay back the amount borrowed. Nothing is free

    • @Samsonit50
      @Samsonit50 8 หลายเดือนก่อน

      But your supposed to be able to borrow without collateral! This is how flash loans are spoken about 🤣

  • @bhilder
    @bhilder 2 ปีที่แล้ว

    thanks for the video. Quick question. What vscode extension do you use / settings for solidity highlighting. Thanks

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 ปีที่แล้ว +1

      I'm using the Solidity VC plugin by Juan Blanco which is great (using that specifically in this video). I have also used the Hardhat Solidity plugin. Prettier for formatting - you have to enable 'format on save' in VC settings and also ensure a formatter is set for Solidity.

    • @bhilder
      @bhilder 2 ปีที่แล้ว

      @@BlockExplorerMedia thanks bro, big help

  • @realentertainers7655
    @realentertainers7655 ปีที่แล้ว

    hi, please can you code for arbitrage only without the flashloan?

  • @bitsbytes5069
    @bitsbytes5069 ปีที่แล้ว

    dont get the sol to compile in remix. those imports are not working it seems 3 parse errors

  • @blackhat9172
    @blackhat9172 2 ปีที่แล้ว +1

    it works well on testnet tried😬
    but if i deployed on mainnet it will perform same ?🧐

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 ปีที่แล้ว +2

      V3 isn't live on Ethereum mainnet yet as far as I know, but hopefully will be soon. If you need to deploy something sooner, use V2. There's an example of in the code repo.

    • @blackhat9172
      @blackhat9172 2 ปีที่แล้ว +1

      @@BlockExplorerMedia thankyou

    • @samora00
      @samora00 ปีที่แล้ว

      @@BlockExplorerMedia Is there a way to change networks? i'm trying but i want to have this confirmation i'm switching to bsc network. I'm testing first before switching to BSC, on Goerli my getBalance is returning zero on testnet, I've implemented uniswap arbitration for sushsiswap. In etherscan it shows as success the operation, but the value is zero. Can you help me ?

  • @armaniallie8547
    @armaniallie8547 ปีที่แล้ว

    Goerli testnet is deprecated. Is there a dex.sol anybody has for Sepoli with liquidity?