Thanks for this write up.I am relatively new to the arbitrage flashloan bots.I was hoping you could explain in a bit more detail how to successfully code the steps for the prodcution ready bot below:
1.Its very important that you set up an appropriate value to amountOutMin on....
for safety reasons, if not you could be losing money. see Uniswap docs for more info. (This function is used in bot_normalswap.js and Arbitrager.sol).
You probably wanna embedded the logic available at Utils.sol on the bots scripts, avoiding the cost of deploy the Utils contract.
3.Use child process for each block.
4.Select the pools automatically based on, for example, the amount of arbitrage opportunities in the past.