code-423n4 / 2021-10-union-findings

0 stars 0 forks source link

--j is more gas efficient than j--. #102

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

Handle

pants

Vulnerability details

--j is more gas efficient than j--. j-- appears at many loops forwarding functions as in AssetManager.deposit. This time don't changed it to unchecked as suggested to ++ since then you may get overflow.