Skip to content

Commit cb2443a

Browse files
committed
fix typo
1 parent 687c5da commit cb2443a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Doppler.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

test/shared/BaseTest.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)));

0 commit comments

Comments
 (0)