Skip to content
Permalink
Browse files

Change functionality of vested token delivery

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 a329586fc74f70946606b601c7fa1c8d32aedf8c
Showing with 7 additions and 8 deletions.
  1. +7 −8 EVNToken.sol
@@ -718,15 +718,14 @@ contract ENVToken is StandardToken, usingOraclize {
require(teamTokensDelivered == false);
require(_to != 0x0);

// allow delivery of tokens for the team only after 6 months (182,5) days @14,4s / Block
require(block.number >= fundingEndBlock + 1095000);

// Team gets 15% of a whole final pie, meaning we have to add ~11% to the
// 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. (90 * x = 100, where x amounts to roughly about 1.11111 and 10 would be the team's part)
uint256 newTotalSupply = safeMulPercentage(totalSupply, 111111);
// allow delivery of tokens for the company and supporters without vesting, team tokens will be supplied like a CC purchase.

// company and supporters gets 7% of a whole final pie, meaning we have to add ~7,5% 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.
// e.g. (93 * x = 100, where x amounts to roughly about 1.07526 and 10 would be the team's part)
uint256 newTotalSupply = safeMulPercentage(totalSupply, 107526);

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

0 comments on commit a329586

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.