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
Avoid recomputing amountIn when exactIn and `amountRemainingLessF… (#718)
Avoid recomputing `amountIn` when `exactIn` and `amountRemainingLessFee < amountIn`
Simplify the flow in SwapMath library by removing unnecessary calculations related to input amounts. The removed calculations are replaced with a direct assignment of the remaining amount which simplifies the logic. Moreover, the potential for any rounding issues is significantly reduced.
0 commit comments