rename to _lockPeriodCount

pull/530/head
Rongjian Lan 6 years ago
parent 66201578b6
commit 6205e1dda7
  1. 4
      contracts/StakeLockContract.sol

@ -19,7 +19,7 @@ contract StakeLockContract {
uint256 _amount;
uint256 _blockNum;
uint256 _epochNum;
uint256 _continueCount;
uint256 _lockPeriodCount; // The number of locking period the token will be locked.
}
/**
@ -91,7 +91,7 @@ contract StakeLockContract {
returns (uint256 unlockableTokens)
{
uint256 currentEpoch = currentEpoch();
if (locked[_of]._epochNum + locked[_of]._continueCount * LOCK_PERIOD_IN_EPOCHS < currentEpoch) {
if (locked[_of]._epochNum + locked[_of]._lockPeriodCount * LOCK_PERIOD_IN_EPOCHS < currentEpoch) {
unlockableTokens = locked[_of]._amount;
}
}

Loading…
Cancel
Save