File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments