Skip to content

Commit

Permalink
add comments and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vm06007 committed Jan 17, 2024
1 parent 672614b commit 023cbc7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion contracts/TimeLockFarmV2Dual.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ contract TimeLockFarmV2Dual is TokenWrapper {

bool public allowRecoverRewardTokens;
bool public allowReceiptTokenTransfer;

struct Stake {
uint256 amount;
uint256 createTime;
Expand Down Expand Up @@ -410,6 +411,11 @@ contract TimeLockFarmV2Dual is TokenWrapper {
/ _lockingTime;
}

/**
* @dev Calculates total amount of locked tokens
* for all users in the farm at the moment
* @param _squared - if true, calculates quadratic amount
*/
function globalLocked(
bool _squared
)
Expand Down Expand Up @@ -984,7 +990,6 @@ contract TimeLockFarmV2Dual is TokenWrapper {
userStake.createTime = block.timestamp;
i++;
}

if (unlockedAmount == _withdrawAmount) {
return;
}
Expand Down

0 comments on commit 023cbc7

Please sign in to comment.