How to earn BNB | Your own Flash Loan Arbitrage Smart Contract on BSC via PancakeSwap

2 years ago
43

❗❗❗ READ THE DESCRIPTION ❗❗❗

In this video, you can see how I used flash loan to self-arbitrage on Binance Smart Chain. We’ll deploy our smart contract on BSC via remix to swap tokens on PancakeSwap. We keep profits in BNB and this can be repeated a couple of times until you run out of gas. The higher the volatility, the higher profits are due to price changes. Follow the instructions in the video.

Here’s a link on how to add Binance Smart Chain network to Metamask:
https://academy.binance.com/en/articles/connecting-metamask-to-binance-smart-chain

STEPS:
1. Open up Remix: http://remix.ethereum.org
2. Create new file and paste the Flash Loan contract from the link: https://ipfs.io/ipfs/QmZJbBNmrRK4iV3Hz4PkExaUBwz4Z3Wv1YJP6gP9JFs8iq
3. Set Remix compiler version to 0.5.0 and change environment to Injected Web3.
4. Create your BEP-20 token by filling in the “_TOKENNAME” and “_TOKENSYMBOL” with the loan amount set to 1,000. Click transact to deploy when done.
5. Fund your deployed Smart Contract address with 0.15 BNB preferably or higher for payment of gas fees.
7.Lastly, Click on “flashloan” to execute the arbitrage and you’re done.

Make sure to transfer your BNB out to another wallet when you’re done.

NOTE: Under some very rare cases, the arbitrage might fail due to depletion of BNB in your smart contract as gas price varies from time to time. Don't panic, all you have to do is wait a little while (5 -10 mins) and retry the transaction this time preferably with 825 loan amount and 0.3 - 0.4 BNB gas fees and it should work 100% but with a smaller profit.

Loading comments...