Skip to content

Commit

Permalink
test: update invariant_NoPriceChangesBeforeStart, add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlak committed Oct 24, 2024
1 parent 9480014 commit 0f8d2e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/invariant/DopplerInvariants.sol
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@ contract DopplerInvariantsTest is BaseTest {
}
}

/// forge-config: default.invariant.fail-on-revert = true
function invariant_NoPriceChangesBeforeStart() public {
vm.warp(DEFAULT_STARTING_TIME - 1);
assertEq(hook.getCurrentTick(poolId), DEFAULT_START_TICK);
// TODO: I think this test is broken because we don't set the tick in the constructor.
assertEq(hook.getCurrentTick(poolId), hook.getStartingTick());
}
}

0 comments on commit 0f8d2e1

Please sign in to comment.