File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ contract DopplerInvariantsTest is BaseTest {
50
50
console.log ("+-------------------+-----------------------+ " );
51
51
console.log ("| Function Name | Calls | " , handler.totalCalls ());
52
52
console.log ("+-------------------+-----------------------+ " );
53
- console.log ("| buyExactAmountIn | " , handler.calls (handler.buyExactAmountIn.selector ), " | " );
54
- console.log ("| buyExactAmountOut | " , handler.calls (handler.buyExactAmountOut.selector ), " | " );
53
+ console.log ("| buyExactAmountIn | " , handler.calls (handler.buyExactAmountIn.selector ), " | " );
54
+ console.log ("| buyExactAmountOut | " , handler.calls (handler.buyExactAmountOut.selector ), " | " );
55
55
console.log ("| sellExactIn | " , handler.calls (handler.sellExactIn.selector ), " | " );
56
56
console.log ("| sellExactOut | " , handler.calls (handler.sellExactOut.selector ), " | " );
57
57
console.log ("+-------------------+-----------------------+ " );
@@ -121,4 +121,9 @@ contract DopplerInvariantsTest is BaseTest {
121
121
if (liquidity > 0 ) assertTrue (tickLower != tickUpper);
122
122
}
123
123
}
124
+
125
+ function invariant_NoPriceChangesBeforeStart () public {
126
+ vm.warp (DEFAULT_STARTING_TIME - 1 );
127
+ assertEq (hook.getCurrentTick (poolId), DEFAULT_START_TICK);
128
+ }
124
129
}
You can’t perform that action at this time.
0 commit comments