@@ -60,10 +60,7 @@ abstract contract TimelockUtils is ClaimUtils, ITimelockUtils {
6060
6161 /// @notice Called by the TimelockManager contract to deposit tokens on
6262 /// behalf of a user on a linear vesting schedule
63- /// @dev Refer to `TimelockManager.sol` to see how this is used.
64- /// Note that `releaseStart` gets updated as `releaseEnd - 1` if it is
65- /// equal to or greater than `releaseEnd`. This is to accomodate for the
66- /// already deployed TimelockManager. See the code below for more context.
63+ /// @dev Refer to `TimelockManager.sol` to see how this is used
6764 /// @param source Token source
6865 /// @param amount Token amount
6966 /// @param userAddress Address of the user who will receive the tokens
@@ -87,20 +84,10 @@ abstract contract TimelockUtils is ClaimUtils, ITimelockUtils {
8784 userToTimelock[userAddress].remainingAmount == 0 ,
8885 "Pool: User has active timelock "
8986 );
90- /*
9187 require (
9288 releaseEnd > releaseStart,
9389 "Pool: Timelock start after end "
9490 );
95- // While calling `depositWithVesting()`, if the time is later than
96- // `releaseEnd`, TimelockManager may call this contract with
97- // `releaseStart` that is larger than `releaseEnd`. Instead of
98- // reverting, simply update `releaseStart`.
99- */
100- if (releaseStart >= releaseEnd)
101- {
102- releaseStart = releaseEnd - 1 ;
103- }
10491 require (
10592 amount != 0 ,
10693 "Pool: Timelock amount zero "
0 commit comments