You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
because you wanted the difference to be calculated in price of the token that you are arbitraging with
and what the point if you pay 0.02 Eth for gas and then your total profit is less of what you paid for gas
The text was updated successfully, but these errors were encountered:
If you look on how you calculated the profit
const profit = (totalDifference*priceToken0Eth)-gasCost
the profit should be calculated this way :
const profit = (totalDifferencepriceToken1Eth)-(gasCost2)
because you wanted the difference to be calculated in price of the token that you are arbitraging with
and what the point if you pay 0.02 Eth for gas and then your total profit is less of what you paid for gas
The text was updated successfully, but these errors were encountered: