use variables indtead of array to save gas #119
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
CertoraInc
Vulnerability details
UniswapHelper.sol (
_ensurePriceStability()
function)you save the storage array
localFlanQuotes
to a local (memory) array, but it is more efficient to save it's 2 elements to 2 local variables (this saves the calculating of the address by the index of the array's element and saves some gas)code before:
code after:
The text was updated successfully, but these errors were encountered: