Skip to content

Commit

Permalink
remove commented lines
Browse files Browse the repository at this point in the history
  • Loading branch information
andreivladbrg committed Jan 16, 2025
1 parent 0fb4f37 commit 6b505bb
Showing 1 changed file with 0 additions and 66 deletions.
66 changes: 0 additions & 66 deletions lockup/LockupDynamicCurvesCreator.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -70,70 +70,4 @@ contract LockupDynamicCurvesCreatorTest is Test {
expectedStreamedAmount = 21.25e18; // 0.5^{6} * 80 + 20
assertEq(actualStreamedAmount, expectedStreamedAmount);
}

// function test_CreateStream_UnlockLinear() external {
// uint256 expectedStreamId = creator.LOCKUP().nextStreamId();
// uint256 actualStreamId = creator.createStream_UnlockLinear();

// // Assert that the stream has been created.
// assertEq(actualStreamId, expectedStreamId);

// uint256 blockTimestamp = block.timestamp;

// // Warp 1 second into the future, i.e. the initial unlock.
// vm.warp({ newTimestamp: blockTimestamp + 1 seconds });

// uint128 actualStreamedAmount = creator.LOCKUP().streamedAmountOf(actualStreamId);
// uint128 expectedStreamedAmount = 25e18;
// assertEq(actualStreamedAmount, expectedStreamedAmount);

// // Warp 50 days into the second segment (4320000 seconds).
// vm.warp({ newTimestamp: blockTimestamp + 50 days + 1 seconds });

// // total duration of segment: 8639999 seconds (100 days - 1 second)
// // amount to be stream in the current segment: 75e18

// actualStreamedAmount = creator.LOCKUP().streamedAmountOf(actualStreamId);
// expectedStreamedAmount = 62.87878787878787875e18; // (0.500000057870377068)^{1} * 75 + 25
// assertEq(actualStreamedAmount, expectedStreamedAmount);
// }

// function test_CreateStream_UnlockCliffLinear() external {
// uint256 expectedStreamId = creator.LOCKUP().nextStreamId();
// uint256 actualStreamId = creator.createStream_UnlockCliffLinear();

// // Assert that the stream has been created.
// assertEq(actualStreamId, expectedStreamId);

// uint256 blockTimestamp = block.timestamp;

// // Warp 1 second into the future, i.e. the initial unlock.
// vm.warp({ newTimestamp: blockTimestamp + 1 seconds });

// uint128 actualStreamedAmount = creator.LOCKUP().streamedAmountOf(actualStreamId);
// uint128 expectedStreamedAmount = 25e18;
// assertEq(actualStreamedAmount, expectedStreamedAmount);

// // Warp 50 days into the future.
// vm.warp({ newTimestamp: blockTimestamp + 50 days });

// // Assert that the streamed amount has remained the same.
// actualStreamedAmount = creator.LOCKUP().streamedAmountOf(actualStreamId);
// assertEq(actualStreamedAmount, expectedStreamedAmount);

// // Warp 50 days plus a second into the future, i.e. after the cliff unlock.
// vm.warp({ newTimestamp: blockTimestamp + 50 days + 1 seconds });

// // Assert that the streamed amount has increased by the cliff amount.
// actualStreamedAmount = creator.LOCKUP().streamedAmountOf(actualStreamId);
// expectedStreamedAmount = 50e18;
// assertEq(actualStreamedAmount, expectedStreamedAmount);

// // Warp 75 days plus a second into the future.
// vm.warp({ newTimestamp: blockTimestamp + 75 days + 1 });

// actualStreamedAmount = creator.LOCKUP().streamedAmountOf(actualStreamId);
// expectedStreamedAmount = 75e18; // (0.50)^{1} * 50 + 50
// assertEq(actualStreamedAmount, expectedStreamedAmount);
// }
}

0 comments on commit 6b505bb

Please sign in to comment.