Oussama abdallah
Oussama abdallah
If you look on how you calculated the profit const profit = (totalDifference*priceToken0Eth)-gasCost the profit should be calculated this way : const profit = (totalDifference*priceToken1Eth)-(gasCost*2) because you wanted the difference...
Am trying to run the script in Ropsten network i have did some changes in .env.test file this way `# Gas Management GAS_STATION_URL=http://ethgasstation.info/json/ethgasAPI.json GAS_PRICE_MULTIPLIER=2 GAS_PRICE_UPDATE_FREQUENCY_SEC=120 GAS_INITIAL_PRICE=30000000000 GAS_REQUEST_TIMEOUT_MS=10000 GAS_PRICE_ADDITION=1 # Solo...