Skip to content

Commit

Permalink
fix(typo): TickMath.getTickAtSqrtRatio
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhuiluo committed Mar 4, 2024
1 parent 1e2e1b3 commit 37a1abe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TickMath.sol
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ library TickMath {
/// @solidity memory-safe-assembly
assembly {
// if sqrtPriceX96 < MIN_SQRT_RATIO, the `sub` underflows and `gt` is true
// if sqrtPriceX96 >= MAX_SQRT_RATIO, sqrtPriceX96 - MIN_SQRT_RATIO > MAX_SQRT_RATIO - MAX_SQRT_RATIO - 1
// if sqrtPriceX96 >= MAX_SQRT_RATIO, sqrtPriceX96 - MIN_SQRT_RATIO > MAX_SQRT_RATIO - MIN_SQRT_RATIO - 1
if gt(sub(sqrtPriceX96, MIN_SQRT_RATIO), MAX_SQRT_RATIO_MINUS_MIN_SQRT_RATIO_MINUS_ONE) {
// selector "Error(string)", [0x1c, 0x20)
mstore(0, 0x08c379a0)
Expand Down

0 comments on commit 37a1abe

Please sign in to comment.