BitsBot is a node.js app with solidity smart contracts that continuosly fetches crypto prices on exchanges looking for arbitrage opportunities, trying to guarantee that the trade is possible before even attempting to execute it.
index.js : It's the starting point of node.js app to looking for arbitrage opportunities and execute a trade.
BitsBot.sol : In the contracts folder BitsBot.sol a smart contract gets called by the node app only when a profitable arbitrage is found
Deploy BitsBot.sol with an initial 100 wei and get an address
RPC_URL="https://mainnet.infura.io/v3/YOUR_API_KEY_HERE"
ADDRESS="0x..."
PRIVATE_KEY="0x..."
CONTRACT_ADDRESS="0x..."
GAS_LIMIT=3000000
GAS_PRICE=200
ESTIMATED_GAS=1700000
Run node app by this command => node index.js