E2 attempts to do "Arbitrage gas optimization" via this PR and this one.
Changes Done
The functions which have been refactored inside Pools.sol are:
_adjustReservesForSwap
_arbitrage
_attemptArbitrage
_adjustReservesForSwapAndAttemptArbitrage
The changes are less related to any major logic change and more related to refactoring the variables and flow.
These have now been analyzed and the logic looks good.
Lines of code
Vulnerability details
Summary
E2 attempts to do "Arbitrage gas optimization" via this PR and this one.
Changes Done
The functions which have been refactored inside
Pools.sol
are:The changes are less related to any major logic change and more related to refactoring the variables and flow. These have now been analyzed and the logic looks good.
Conclusion
LGTM