From 6b505bb521b3b59b2ada5c1dd433892f837c9601 Mon Sep 17 00:00:00 2001 From: Andrei Vlad Birgaoanu Date: Thu, 16 Jan 2025 19:21:42 +0200 Subject: [PATCH] remove commented lines --- lockup/LockupDynamicCurvesCreator.t.sol | 66 ------------------------- 1 file changed, 66 deletions(-) diff --git a/lockup/LockupDynamicCurvesCreator.t.sol b/lockup/LockupDynamicCurvesCreator.t.sol index d77e332..9d0e578 100644 --- a/lockup/LockupDynamicCurvesCreator.t.sol +++ b/lockup/LockupDynamicCurvesCreator.t.sol @@ -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); - // } }