Skip to content

Commit

Permalink
fix overflow (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lomet authored Mar 19, 2023
1 parent 2b7172c commit e9b775a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/LockedControl.sol
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ contract LockedControl is LockedPoolz{
function getArraySum(uint256[] calldata _array) internal pure returns(uint256) {
uint256 sum = 0;
for(uint i=0 ; i<_array.length ; i++){
sum = sum + _array[i];
sum = SafeMath.add(sum ,_array[i]);
}
return sum;
}
Expand Down

0 comments on commit e9b775a

Please sign in to comment.