Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kinrezC committed Oct 21, 2024
1 parent 687c5da commit cb2443a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Doppler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ contract Doppler is BaseHook {
/* Tick checks */
// Starting tick must be greater than ending tick if isToken0
// Ending tick must be greater than starting tick if isToken1
if (_startingTick != endingTick) {
if (_startingTick != _endingTick) {
if (_isToken0 && _startingTick <= _endingTick) revert InvalidTickRange();
if (!_isToken0 && _startingTick >= _endingTick) revert InvalidTickRange();

Expand Down
4 changes: 2 additions & 2 deletions test/shared/BaseTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ contract BaseTest is Test, Deployers {

// isToken0 ? startTick > endTick : endTick > startTick
// In both cases, price(startTick) > price(endTick)
startTick = isToken0 ? int24(vm.envOr("START_TICK", DEFAULT_START_TICK)) : -int24(vm.envOr("START_TICK", DEFAULT_START_TICK));
endTick = isToken0 ? -int24(vm.envOr("END_TICK", DEFAULT_END_TICK)) : int24(vm.envOr("END_TICK", DEFAULT_END_TICK));
startTick = isToken0 ? int24(vm.envOr("START_TICK", DEFAULT_START_TICK)) : int24(vm.envOr("START_TICK", -DEFAULT_START_TICK));
endTick = isToken0 ? int24(vm.envOr("END_TICK", -DEFAULT_END_TICK)) : int24(vm.envOr("END_TICK", DEFAULT_END_TICK));

// Default to feeless case because it's easier to reason about
config.fee = uint24(vm.envOr("FEE", uint24(0)));
Expand Down

0 comments on commit cb2443a

Please sign in to comment.