Skip to content

Commit

Permalink
Change functionality of vested token delivery
Browse files Browse the repository at this point in the history
Instead of delivering vested tokens for the team, deliverTeamTokens() immediately delivers tokens for company and supporters. Team token delivery will be handled like a credit card purchase.
  • Loading branch information
nikita-fuchs committed Dec 11, 2017
1 parent d840c5c commit a329586
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions EVNToken.sol
Expand Up @@ -718,15 +718,14 @@ contract ENVToken is StandardToken, usingOraclize {
require(teamTokensDelivered == false); require(teamTokensDelivered == false);
require(_to != 0x0); require(_to != 0x0);


// allow delivery of tokens for the team only after 6 months (182,5) days @14,4s / Block // allow delivery of tokens for the company and supporters without vesting, team tokens will be supplied like a CC purchase.
require(block.number >= fundingEndBlock + 1095000);

// company and supporters gets 7% of a whole final pie, meaning we have to add ~7,5% to the
// Team gets 15% of a whole final pie, meaning we have to add ~11% to the // current totalSupply now, basically stretching it and taking 7% from the result, so the 93% that remain equals the amount of tokens created right now.
// current totalSupply now, basically stretching it and taking 10% from the result, so the 90% that remain equals the amount of tokens created right now. // e.g. (93 * x = 100, where x amounts to roughly about 1.07526 and 10 would be the team's part)
// e.g. (90 * x = 100, where x amounts to roughly about 1.11111 and 10 would be the team's part) uint256 newTotalSupply = safeMulPercentage(totalSupply, 107526);
uint256 newTotalSupply = safeMulPercentage(totalSupply, 111111);


// give the team their 10% // give company and supporters their 7%
uint256 tokens = SafeMath.sub(newTotalSupply, totalSupply); uint256 tokens = SafeMath.sub(newTotalSupply, totalSupply);
balances[_to] = tokens; balances[_to] = tokens;


Expand Down

0 comments on commit a329586

Please sign in to comment.