diff --git a/contracts/base/FuroStream.sol b/contracts/base/FuroStream.sol index 758d220..3d5e9e5 100644 --- a/contracts/base/FuroStream.sol +++ b/contracts/base/FuroStream.sol @@ -72,7 +72,6 @@ contract FuroStream is override returns (uint256 streamId, uint256 depositedShares) { - if (startTime < block.timestamp) revert InvalidStartTime(); if (endTime <= startTime) revert InvalidEndTime(); depositedShares = _depositToken( diff --git a/contracts/base/FuroVesting.sol b/contracts/base/FuroVesting.sol index 411b1e0..516ffd5 100644 --- a/contracts/base/FuroVesting.sol +++ b/contracts/base/FuroVesting.sol @@ -70,7 +70,6 @@ contract FuroVesting is uint128 cliffShares ) { - if (vestParams.start < block.timestamp) revert InvalidStart(); if (vestParams.stepPercentage > PERCENTAGE_PRECISION) revert InvalidStepSetting(); if (vestParams.stepDuration == 0 || vestParams.steps == 0) diff --git a/test/furo-test.ts b/test/furo-test.ts index 58c378d..3300fdb 100644 --- a/test/furo-test.ts +++ b/test/furo-test.ts @@ -235,27 +235,6 @@ describe("Stream Creation", function () { ).to.be.revertedWith(customError("NotSender")); }); - it("should not be able create stream when startTime is less than block.timestamp", async function () { - const startTime = await latest(); - const endTime = startTime.add(BigNumber.from(3600)); - - const amount = getBigNumber(10000); - const amountToShares = await toShare(bento, tokens[0], amount); - - const amountToDeposit = amountToShares; - - await expect( - furoStream.createStream( - accounts[1].address, - tokens[0].address, - startTime, - endTime, - amountToDeposit, - true - ) - ).to.be.revertedWith(customError("InvalidStartTime")); - }); - it("should not be able create stream when endTime is less than startTime", async function () { await expect( furoStream.createStream( @@ -1342,9 +1321,7 @@ describe("Stream Creation - Batchable", function () { false, ] ); - await furoStream.multicall( - [masterContractApprovalData, createStreamData] - ); + await furoStream.multicall([masterContractApprovalData, createStreamData]); const newStreamId = await snapshotStreamId(furoStream); const newStreamData = await snapshotStreamData(furoStream, oldStreamId); const tokenBalanceAfter = await tokens[0].balanceOf(accounts[0].address); diff --git a/test/furo-vest-test.ts b/test/furo-vest-test.ts index 2d32bc2..74856c8 100644 --- a/test/furo-vest-test.ts +++ b/test/furo-vest-test.ts @@ -197,22 +197,6 @@ describe("Create Vest", () => { ) ); }); - - it("should not allow to create vest with old start", async function () { - await expect( - furoVesting.createVesting({ - token: tokens[0].address, - recipient: accounts[1].address, - start: startTime.sub(1000), - cliffDuration: ONE_YEAR, - stepDuration: ONE_MONTH, - steps: steps, - stepPercentage: stepPercentage, - amount: amount, - fromBentoBox: true, - }) - ).to.be.revertedWith("InvalidStart()"); - }); }); describe("Balances", () => {