Skip to content

Commit

Permalink
Remove bad InvalidGamma check (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinrezC authored Oct 23, 2024
1 parent 2cf7329 commit 8158fe5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Doppler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,6 @@ contract Doppler is BaseHook {
if (_startingTick != _endingTick) {
if (_isToken0 && _startingTick <= _endingTick) revert InvalidTickRange();
if (!_isToken0 && _startingTick >= _endingTick) revert InvalidTickRange();

int24 totalTickDelta = _isToken0 ? _startingTick - _endingTick : _endingTick - _startingTick;
int256 totalEpochs = int256((_endingTime - _startingTime) / _epochLength);
// DA worst case is starting tick - ending tick
if (_gamma * totalEpochs != totalTickDelta) revert InvalidGamma();
}
// Enforce maximum tick spacing
if (_poolKey.tickSpacing > MAX_TICK_SPACING) revert InvalidTickSpacing();
Expand Down

0 comments on commit 8158fe5

Please sign in to comment.