CDP.sol#update.sol
can be optimized
#91
Labels
bug
Something isn't working
G (Gas Optimization)
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
0x0x0x
Vulnerability details
Concept
The current code is:
We cache _self.totalDebt, but it is not required, since we can use it before we change it. This code block can be replaced with:
By doing so, we don't cache
_self.totalDebt
just to use it once.The text was updated successfully, but these errors were encountered: