Compare commits

..

3 Commits

Author SHA1 Message Date
p1r0 c40d445121 Update 'README.md' 2023-06-08 02:41:38 +00:00
David E. Perez Negron Rocha bcf24dfb70 Merge branch 'hotfix/Fix_Integer_Overflow/Underflow' 2020-06-19 18:57:35 -05:00
David E. Perez Negron Rocha 0b45255267 Fix Integer Overflow / Underflow 2020-06-19 18:57:01 -05:00
2 changed files with 6 additions and 0 deletions

View File

@ -183,3 +183,7 @@ and considering our promodates which are:
| Bonus1 | 2 | 275 |
| Bonus2 | 3 | 250 |
| ICO | 5 | 225 |
## Contract Devs
* [David E. Perez Negron R.](mailto:david@neetsec.com)

View File

@ -156,6 +156,8 @@ contract DECA is ERC20, Ownable {
//Add weeks in case ICO gets not enough funds
function appendWeeks(uint addWeeks ) public onlyOwner {
require(now >= bonus2Ends && now < endDate);
// Fix Integer Overflow / Underflow
require(endDate < (endDate + (addWeeks * 1 weeks)));
// add weeks to the endDate
endDate += (addWeeks * 1 weeks);
}