From 6205e1dda740511217937310d6b6596c246a03a1 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Tue, 5 Mar 2019 11:37:48 -0800 Subject: [PATCH] rename to _lockPeriodCount --- contracts/StakeLockContract.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/StakeLockContract.sol b/contracts/StakeLockContract.sol index a57003f1a..a49715b61 100644 --- a/contracts/StakeLockContract.sol +++ b/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; } }