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"?
@@coderaiders-yt Please help Error HH404: File @uniswap/v3-periphery/contracts/interfaces/IUniswapV3Pool.sol, imported from contracts/Flashloan.sol, not found.
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.
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
How to fix this error message? Error HH404: File @uniswap/v3-periphery/contracts/interfaces/IUniswapV3Pool.sol, imported from contracts/Flashloan.sol, not found.
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)
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.
thanks man. U don't know how much u are helping people. Thanks again🙏
That's great to hear!
You are a legend. Such valuable contents you put on UA-cam
It’s gratifying to see it well received my friend.
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"?
I need to ask if it's possible to buy from binance and sell in kucoin or it's only for uniswap and pancake
Not via a FlashLoan. Remember Flashloans need transactions to be atomic.
@@coderaiders-yt Please help
Error HH404: File @uniswap/v3-periphery/contracts/interfaces/IUniswapV3Pool.sol, imported from contracts/Flashloan.sol, not found.
Please just a question, how do I get pool address for token pairs on different daxes
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.
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
Great video
Thanks!
awesome!!
How to fix this error message?
Error HH404: File @uniswap/v3-periphery/contracts/interfaces/IUniswapV3Pool.sol, imported from contracts/Flashloan.sol, not found.
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)
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.