Closed code423n4 closed 2 years ago
pauliax
PRECISION does not change, thus it can be assigned initially and marked as a constant to reduce gas costs:
uint256 private PRECISION; // now uint256 private constant PRECISION = 1e18; // proposed
Duplicate of #239
Per sponsor, this is invalid because the contract in question is proxied.
Handle
pauliax
Vulnerability details
Impact
PRECISION does not change, thus it can be assigned initially and marked as a constant to reduce gas costs: