Skip to content

Commit

Permalink
fix: simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
ypatil12 committed Oct 1, 2024
1 parent 05588ae commit e8661a6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/contracts/core/AllocationManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit e8661a6

Please sign in to comment.