6eer / uniswap-sushiswap-arbitrage-bot

Two bots written in JS that uses flashswaps and normal swaps to arbitrage Uniswap. Includes an automated demostration.
MIT License
586 stars 264 forks source link

Production Ready Issues #14

Open Centori opened 3 years ago

Centori commented 3 years ago

Hi,

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.

Thanks.