What is it about?
The NCDT-Token are part of the ICO of Nuco.Cloud.
Install the following tools globally (or using npx)
We assume that you are already familiar with Ethereum development and its toolset including Ganache, Truffle-Suite and also OpenZeppelin as framework (or even better ZeppelinOS) and that you have everything setup on your development machine.
Checkout and intall dependencies
git clone firstname.lastname@example.org:nucocloud/ncd-token.git cd ncd-token npm install
- start ganache
ganache-cli --mnemonic “your twelve word mnemonic here”
- In a new terminal, run tests:
Vesting / Team Tokens
The following rules has been defined for minting Team tokens into a specific vesting contract:
- Crowdsale goes 12 months
- Every sold token is doubled into a special vesting contract
- these vesting tokens can be released 12 months later on a monthly basis, but only 10% each month
- Within vesting contract multiple people has separate shares into the vesting (some get 20%, some only 1% and so on)
- Month 1 Crowdsale: 100 Token sold
- Month 2 Crowdsale: 50 Token sold
- Month 3 Crowdsale: 150 token sold
Therefor in the 13th Month can 100 Token get released into the vesting contract, but only 10% (per month) can be transferred out of it to wallets of team members. In the 14th Month further 50 Token can get released into the vesting contract, which got in total 150 token yet, which means that 15 token can be withdrewed into team members wallets and 10 Token from first Month as well. In the 15th Month another 150 Token can get released into VC, which got now in total 300 token which means that 30 token can get withdrewed into teams wallets. And so on ...
Since date-related arithmetic is not that easy in Solidity and Ethereum, we are going to work with "ideal 31 days month" (means: in Token Vesting Contract every month is 31 days long). This enhances the vesting period for team tokens for some days but this will not affect any investor!
Known issues in Unit tests
"Cannot increase current time (6214995149) to a moment in the past (6214995148)"
From time to time, in 1 out of 10,11,12... test runs this error is thrown running on ganache-cli. We use quiet offen openzeppelin-test-helpers in order to increase the blockchain timestamp/block height for testing events that will happen in the future. Sometimes, this error is happening then for no known reasons.