adding appendWeeks function

This commit is contained in:
David E. Perez Negron Rocha 2020-05-26 18:28:58 -05:00
parent 3d723163e8
commit d97f7cd426
1 changed files with 7 additions and 0 deletions

View File

@ -153,6 +153,13 @@ contract DECA is ERC20, Ownable {
_mint(msg.sender, toSender);
}
//Add weeks in case ICO gets not enough funds
function appendWeeks(uint addWeeks ) public onlyOwner {
require(now >= bonus2Ends && now < endDate);
// add weeks to the endDate
endDate += (addWeeks * 1 weeks);
}
//Close down the ICO and claim the Ether.
function getETH() public onlyOwner {
require(now >= endDate);