Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kinrezC committed Oct 24, 2024
1 parent 870af0a commit b3af3a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Doppler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,10 @@ contract Doppler is BaseHook {
for (uint256 i; i < numPDSlugs + 1; ++i) {
delete positions[bytes32(uint256(2 + i))];
}
} else {
revert InvalidSwapAfterMaturitySufficientProceeds();
}
}

}
// If startTime < block.timestamp < endTime and !earlyExit and !insufficientProceeds, we rebalance
if (!insufficientProceeds) {
_rebalance(key);
Expand All @@ -234,7 +235,7 @@ contract Doppler is BaseHook {
}
} else {
if (swapParams.zeroForOne == true) {
revert InvalidSwapAfterMaturitySufficientProceeds();
revert InvalidSwapAfterMaturityInsufficientProceeds();
}
}
}
Expand Down

0 comments on commit b3af3a0

Please sign in to comment.