ExtropyIO / defi-bot

Tutorial for building DeFi arbitrage bots
1.18k stars 468 forks source link

What is the optimum values for Gas For Arb to Run #6

Closed ratewar closed 3 years ago

ratewar commented 3 years ago

Hi thanks for the article and code. The challenge i have is getting the optimum value for Gas for Arb. How much is sufficient is the value provided in .env is the right values ? It turns out to be too much cost from a txn fee prospective.

codemedici commented 3 years ago

Hi, you can use https://docs.ethgasstation.info/ API in order to always use the best price dynamically, I recommend using the fastest option and update the profit calculation with the dynamic gas amount each time.