File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ contract Doppler is BaseHook {
9696        /* Tick checks */ 
9797        // Starting tick must be greater than ending tick if isToken0 
9898        // Ending tick must be greater than starting tick if isToken1 
99-         if  (_startingTick !=  endingTick ) {
99+         if  (_startingTick !=  _endingTick ) {
100100            if  (_isToken0 &&  _startingTick <=  _endingTick) revert  InvalidTickRange ();
101101            if  (! _isToken0 &&  _startingTick >=  _endingTick) revert  InvalidTickRange ();
102102
Original file line number Diff line number Diff line change @@ -152,8 +152,8 @@ contract BaseTest is Test, Deployers {
152152
153153        // isToken0 ? startTick > endTick : endTick > startTick 
154154        // In both cases, price(startTick) > price(endTick) 
155-         startTick =  isToken0 ?  int24 (vm.envOr ("START_TICK " , DEFAULT_START_TICK)) : -  int24 (vm.envOr ("START_TICK " , DEFAULT_START_TICK));
156-         endTick =  isToken0 ?  - int24 (vm.envOr ("END_TICK " , DEFAULT_END_TICK)) :  int24 (vm.envOr ("END_TICK " , DEFAULT_END_TICK));
155+         startTick =  isToken0 ?  int24 (vm.envOr ("START_TICK " , DEFAULT_START_TICK)) :  int24 (vm.envOr ("START_TICK " , - DEFAULT_START_TICK));
156+         endTick =  isToken0 ?  int24 (vm.envOr ("END_TICK " , - DEFAULT_END_TICK)) :  int24 (vm.envOr ("END_TICK " , DEFAULT_END_TICK));
157157
158158        // Default to feeless case because it's easier to reason about 
159159        config.fee =  uint24 (vm.envOr ("FEE " , uint24 (0 )));
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments