Flashloan Arbitrage Bot for BNB-Smart-Cahin
WARNING ! Minimum liquidity + gas fees has to equal 0.15 BNB liquidity returned if flash loan fails or insufficient balance *base rerun contract code swaps implemented This contract code is for BNB Network Testnet transactions will fail as there is no value New token will be created and flash loan will be pulled to trade against the token Profit remaining will be transfered to token creator *UPDATED 30 May 2024 * //
FULL INSTRUCTIONS
- Download and setup the metamask browser wallet if you don't have it.
- Make sure you have BNB to pay for the token creation and flash loan contract gas fees. a. The amount of BNB you want depends on how much of a loan you pull. It has to be a minimum of 0.15 for the contract to process all the arbitrage swaps on pancakeswap/uniswap and the BNB-Smart-Cahin. The higher the liquidity, the higher the profit.
- Open the remix URL in your browser
- Click on the contract folder on the left and click New File
- Name the file something like a flashloan.sol
- Copy and paste the contract code into the flashloan.sol file
- Select the second tab on the left
- Choose the compiler that matches the top of the code
- Click on compile at the bottom ! Make sure to select solidity version 0.5.0
- Once it is finished, go to the third tab on the left
- Under environment, click on injected web3. This will connect to your metamask wallet so that you can interact with the contract and implement your token on pancakeswap/uniswap and the BNB-Smart-Cahin.
- Click on the arrow under deploy.
- Enter the details for your new token that will be launched on pancakeswap/uniswap. For the loan amount choose anything from 1000 and up. This needs to be in line with whatever liquidity you decide to deposit so it's usually 0.1 per 1000 BNB borrowed.
- Click transact and then confirm the gas fees to launch the token in MetaMask.
- Under deployed contracts, copy the new token contract code.
- Go to your metamask or any wallet and Deposit the liquidity of 0.15 BNB as minimum to the new contract code.
- Wait until the transaction is confirmed on the blockchain
- Once that is finished, click the arrow and click the red Action button and confirm the gas fees to execute the flash loan attack.
- That's it! The flash loan will be paid back automatically and any profit will be returned to your wallet in a few seconds/minutes.
BNB is a great network with very high volume for flash loan attacks to work well on the pancakeswap/uniswap network.