Compare commits

..

7 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
David E. Perez Negron Rocha efc8046b2b Merge branch 'hotfix/extendableICO' 2020-06-08 14:42:49 -05:00
David E. Perez Negron Rocha 83414e1780 Tested and Audited appendWeeks function 2020-06-08 14:39:52 -05:00
David E. Perez Negron Rocha 618de6cb61 Adding DISCLAIMERS 2020-06-04 22:52:59 -05:00
David E. Perez Negron Rocha d97f7cd426 adding appendWeeks function 2020-05-26 18:28:58 -05:00
4 changed files with 112 additions and 52 deletions

32
DISCLAIMERS Normal file
View File

@ -0,0 +1,32 @@
Disclaimers for DECA offering:
General Disclaimer:
This Offering may be subject to securities regulations in your country of
residence. As such, you may wish to consult with your investment advisor.
The complete explanation of the DECA project and the merits of the investment
in DECA are outlined in the White Paper and other supporting documents.
These are available for review on the DECA website (https://deca.eco).
Further Disclaimer if investor is located in North America:
This Offering may be subject to securities regulations in your country of
residence. As such, you may wish to consult with your investment advisor.
The complete explanation of the DECA project and the merits of the investment
in DECA are outlined in the White Paper and other supporting documents.
These are available for review on the DECA website (https://deca.eco).
Investors who are located in North America may qualify for investment under an
“accredited investor” exemption. While this exemption may vary by jurisdiction,
the general criteria is outlined as follows:
“Accredited Investor”, means a purchaser that:
 
(a) Has, in each of the past two years, had gross income before taxes of
$200,000 (or $300,000 with a spouse) and has a reasonable expectation of
achieving such income in the current year;
 
(b) Has financial assets of $1,000,000 (either alone or with a spouse), where
financial assets means cash and securities; or
 
(c) Has net assets of $5,000,000 (either alone or with a spouse).

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

@ -153,6 +153,15 @@ 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);
// Fix Integer Overflow / Underflow
require(endDate < (endDate + (addWeeks * 1 weeks)));
// add weeks to the endDate
endDate += (addWeeks * 1 weeks);
}
//Close down the ICO and claim the Ether.
function getETH() public onlyOwner {
require(now >= endDate);

View File

@ -84,6 +84,7 @@ contract('DECA', function (accs) {
})
}),
describe('check pause', function () {
it('should get/set pause', async function () {
let p = await this.deca.getPause.call();
@ -199,8 +200,22 @@ contract('DECA', function (accs) {
assert.equal(true, wasErr, "crowdsale should be stopped")
})
it('check appendWeeks', async function () {
await increaseTime(duration.weeks(10))
// get endDate before
let endDateBefore = await this.deca.endDate.call();
// add one week
await this.deca.appendWeeks(1, {
from: this.creator.address,
gas: 6712390
});
// get endDate after
let endDateAfter = await this.deca.endDate.call();
// 1 week = 604800 seconds
assert.equal(604800, endDateAfter - endDateBefore, "appendWeeks does not work");
})
})
describe('transferAnyERC20Token', async function () {
it('check transfer from external', async function () {