From e8661a6b5e4ad37940f5044591bf242f25c34221 Mon Sep 17 00:00:00 2001 From: Yash Patil Date: Mon, 30 Sep 2024 21:43:37 -0700 Subject: [PATCH] fix: simplification --- src/contracts/core/AllocationManager.sol | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/contracts/core/AllocationManager.sol b/src/contracts/core/AllocationManager.sol index c8dd2f617..967af2041 100644 --- a/src/contracts/core/AllocationManager.sol +++ b/src/contracts/core/AllocationManager.sol @@ -294,10 +294,7 @@ contract AllocationManager is ); // Set the current magnitude to the pending magnitude if the effectTimestamp is in the past - uint64 currentMagnitude = opsetMagnitudeInfo.currentMagnitude; - if (opsetMagnitudeInfo.effectTimestamp <= block.timestamp) { - currentMagnitude = _calculateNewCurrentMagnitude(opsetMagnitudeInfo); - } + uint64 currentMagnitude = _calculateNewCurrentMagnitude(opsetMagnitudeInfo); require(currentMagnitude != allocation.magnitudes[i], SameMagnitude());