Open code423n4 opened 2 years ago
pmerkleplant
The function getDelegatorDetails() declares three arrays of type uint (alias for uint256).
getDelegatorDetails()
uint
uint256
The variables saved in the arrays are of type uint128.
uint128
See lines 451-453.
The suggestion is to be consistent with the integer sizes.
Agree with the finding, I do not believe there will be any gas savings as memory is stored in 32bits chunks, that said, it does make the code more consistent
Handle
pmerkleplant
Vulnerability details
Impact
The function
getDelegatorDetails()
declares three arrays of typeuint
(alias foruint256
).The variables saved in the arrays are of type
uint128
.See lines 451-453.
The suggestion is to be consistent with the integer sizes.