Commit bcf24dfb authored by David E. Perez Negron Rocha's avatar David E. Perez Negron Rocha
Browse files

Merge branch 'hotfix/Fix_Integer_Overflow/Underflow'

parents efc8046b 0b452552
Pipeline #158234125 passed with stages
in 2 minutes and 22 seconds
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment