Open code423n4 opened 3 years ago
paulius.eth
In function updateAnchorPrice here 'arrayAnchors[i]' can be replaced with 'token' to eliminate one expensive storage access: arrayPrices[i] = iUTILS(UTILS()).calcValueInBase(arrayAnchors[i], one);
https://github.com/vetherasset/vaderprotocol-contracts/commit/30292da1c71654d32e888ca8d0404a7b56496b7a
Handle
paulius.eth
Vulnerability details
Impact
In function updateAnchorPrice here 'arrayAnchors[i]' can be replaced with 'token' to eliminate one expensive storage access: arrayPrices[i] = iUTILS(UTILS()).calcValueInBase(arrayAnchors[i], one);