Flash Loan Arbitrage Smart Contract BSC Build - (Constructor with PoolAddress)

Поділитися
Вставка
  • Опубліковано 2 лют 2025

КОМЕНТАРІ •

  • @imaginestudioet
    @imaginestudioet Рік тому +2

    thanks man. U don't know how much u are helping people. Thanks again🙏

  • @gobinda-qm8ix
    @gobinda-qm8ix Рік тому

    You are a legend. Such valuable contents you put on UA-cam

    • @coderaiders-yt
      @coderaiders-yt  Рік тому

      It’s gratifying to see it well received my friend.

  • @gaddz4886
    @gaddz4886 Рік тому

    Question. How is everything "reverted" if the arbitrage trade is not profitable. I get that everything happens in the same transaction. But imagine if you perform the swap on for example Pancakeswap V3, then something unexpected happens with the liquidity on Pancakeswap V2, so the trade wouldn't be proftiable. How is that swap just "reverted"?

  • @ayamohamed649
    @ayamohamed649 Рік тому

    I need to ask if it's possible to buy from binance and sell in kucoin or it's only for uniswap and pancake

    • @coderaiders-yt
      @coderaiders-yt  Рік тому +2

      Not via a FlashLoan. Remember Flashloans need transactions to be atomic.

    • @rolandonwa2369
      @rolandonwa2369 9 місяців тому

      ​@@coderaiders-yt Please help
      Error HH404: File @uniswap/v3-periphery/contracts/interfaces/IUniswapV3Pool.sol, imported from contracts/Flashloan.sol, not found.

  • @DavidloveDavid
    @DavidloveDavid Рік тому

    Please just a question, how do I get pool address for token pairs on different daxes

    • @coderaiders-yt
      @coderaiders-yt  Рік тому +1

      It depends on the algorithm they use. For example, Uniswap V2 (and thus Pancakeswap V2) you can get them directly from the factory too, just by putting in an integer. You can then loop through integers and take a record of available addresses. That is just one way though.

    • @DavidloveDavid
      @DavidloveDavid Рік тому

      Super helpful, your video came handy, currently developing a bot too, that scans two dexes for swaps on two tokens with flashloans. Still perfecting before I will pull more exchanges and more coins. Thanks for your video

  • @DavidloveDavid
    @DavidloveDavid Рік тому

    Great video

  • @davidharveyhq
    @davidharveyhq Рік тому

    awesome!!

  • @rolandonwa2369
    @rolandonwa2369 9 місяців тому

    How to fix this error message?
    Error HH404: File @uniswap/v3-periphery/contracts/interfaces/IUniswapV3Pool.sol, imported from contracts/Flashloan.sol, not found.

  • @rangga_art709
    @rangga_art709 Рік тому

    i get this error when running test npx.what is the actual issue? :: BinanceFlashloanPancakeSwapV3
    Deployment and Testing
    1) Deploys and performs Flash Loan arbitrage
    0 passing (5s)
    1 failing
    1) BinanceFlashloanPancakeSwapV3
    Deployment and Testing
    Deploys and performs Flash Loan arbitrage:
    AssertionError: expected 0 to not equal 0. The numerical values of the given "ethers.BigNumber" and "string" inputs were compared, and they differed.
    + expected - actual
    at create_whale (test\Flashtest.ts:34:29)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async loadFixture (node_modules\@nomicfoundation\hardhat-network-helpers\src\loadFixture.ts:59:18)
    at async Context. (test\Flashtest.ts:42:29)

    • @rolandonwa2369
      @rolandonwa2369 9 місяців тому

      Can you help me with this error message
      Error HH404: File @uniswap/v3-periphery/contracts/interfaces/IUniswapV3Pool.sol, imported from contracts/Flashloan.sol, not found.