From 2ba5a0311c7e2395352caaf15757ebe773d19314 Mon Sep 17 00:00:00 2001 From: 3xHarry Date: Fri, 7 Apr 2023 16:09:42 +0200 Subject: [PATCH] https://github.com/sherlock-audit/2023-03-Y2K-judging/issues/480 --- test/legacy_v1/Vault.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/legacy_v1/Vault.sol b/test/legacy_v1/Vault.sol index 192ebb43..8804ee5d 100644 --- a/test/legacy_v1/Vault.sol +++ b/test/legacy_v1/Vault.sol @@ -84,7 +84,7 @@ contract Vault is SemiFungibleVault, ReentrancyGuard { /** @notice You can only call functions that use this modifier before the current epoch has started */ modifier epochHasNotStarted(uint256 id) { - if (block.timestamp > idEpochBegin[id]) revert EpochAlreadyStarted(); + if (block.timestamp >= idEpochBegin[id]) revert EpochAlreadyStarted(); _; }