Skip to content

Commit

Permalink
Client changes: Fixes: teamPoolForFrozenToken + timestamp comment + a…
Browse files Browse the repository at this point in the history
…bove zero testing
  • Loading branch information
Isaac committed Oct 11, 2017
1 parent 1c2f327 commit c18cd8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contracts/LATokenMinter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ contract LATokenMinter {
onlyHelper
returns (uint)
{
require(teamPoolForFrozenTokens != 0x0);

uint currentTimeDiff = getBlockTimestamp().sub(startTime);
uint secondsPerDay = 24 * 3600;
uint daysFromStart = currentTimeDiff.div(secondsPerDay);
Expand All @@ -120,6 +122,7 @@ contract LATokenMinter {
uint maxCurrentHarvest = currentDay.mul(unfrozePerDay);
uint wasNotHarvested = maxCurrentHarvest.sub(alreadyHarvestedTokens);

require(wasNotHarvested > 0);
require(token.issueTokens(teamPoolForFrozenTokens, wasNotHarvested));
alreadyHarvestedTokens = alreadyHarvestedTokens.add(wasNotHarvested);

Expand All @@ -132,7 +135,7 @@ contract LATokenMinter {
token = LATToken(_LATTokenAddress);

numberOfDays = 5 * 365; // 5 years
startTime = 1661166000; // 22 august 2017 11:00 GMT+0;
startTime = 1661166000; // 22 august 2022 11:00 GMT+0;
endTime = numberOfDays.mul(1 days).add(startTime);

uint baseValue = 600000000;
Expand Down

0 comments on commit c18cd8c

Please sign in to comment.