Skip to content

Commit 0092a2d

Browse files
authored
Merge pull request #191 from whetstoneresearch/post-abdk-audit/32
CVF-32, CVF-33
2 parents e1fd607 + 6355d94 commit 0092a2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Doppler.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ contract Doppler is BaseHook {
541541

542542
/// @notice Computes the gamma share for a single epoch, used as a measure for the upper slug range
543543
function _getGammaShare() internal view returns (int256) {
544-
return FullMath.mulDiv(epochLength, 1e18, (endingTime - startingTime)).toInt256();
544+
return FullMath.mulDiv(epochLength, 1e18, endingTime - startingTime).toInt256();
545545
}
546546

547547
/// @notice If offset == 0, retrieves the expected amount sold by the end of the last epoch
@@ -575,13 +575,13 @@ contract Doppler is BaseHook {
575575
return (tick - tickSpacing + 1) / tickSpacing * tickSpacing;
576576
} else {
577577
// Else if positive, we simply round down
578-
return (tick / tickSpacing) * tickSpacing;
578+
return tick / tickSpacing * tickSpacing;
579579
}
580580
} else {
581581
// Round up if isToken1
582582
if (tick < 0) {
583583
// If the tick is negative, we round down the negative result to round up
584-
return (tick / tickSpacing) * tickSpacing;
584+
return tick / tickSpacing * tickSpacing;
585585
} else {
586586
// Else if positive, we simply round up
587587
return (tick + tickSpacing - 1) / tickSpacing * tickSpacing;

0 commit comments

Comments
 (0)