We advise the capability of the uint256 to be downgraded to be assessed and if possible to downgrade it to a uint248 variable permitting both values to be packed to a single storage slot and thus cause a single SSTORE operation to be executed when both values are written to.
UHS-01C: Potential Tight-Packing Optimization
Description:
THe
DepositsReleased
struct contains two variable declarations in sequence one of which is auint8
and the other being auint256
.Example:
Recommendation:
We advise the capability of the
uint256
to be downgraded to be assessed and if possible to downgrade it to auint248
variable permitting both values to be packed to a single storage slot and thus cause a singleSSTORE
operation to be executed when both values are written to.