Skip to content

Commit

Permalink
adjust naming for lockDuration
Browse files Browse the repository at this point in the history
- renamed to remainingDuration
  • Loading branch information
vm06007 committed Dec 14, 2023
1 parent 6808597 commit 9f53b2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/TimeLockFarmV2Dual.sol
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ contract TimeLockFarmV2Dual is TokenWrapper {

uint256 unlockTime;
uint256 unlockRate;
uint256 lockDuration;
uint256 remainingDuration;

for (i; i < stamps; ++i) {

Expand All @@ -433,15 +433,15 @@ contract TimeLockFarmV2Dual is TokenWrapper {
continue;
}

lockDuration = unlockTime
remainingDuration = unlockTime
- block.timestamp;

unlockRate = _squared == false
? unlockRates[unlockTime]
: unlockRatesSQRT[unlockTime];

remainingAmount += unlockRate
* lockDuration;
* remainingDuration;
}
}

Expand Down

0 comments on commit 9f53b2b

Please sign in to comment.