Skip to content

Commit

Permalink
fixup-fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
notJoon committed Feb 8, 2024
1 parent 4954f4e commit e1269a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pool/sqrt_price_math.gno
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func sqrtPriceMathGetNextSqrtPriceFromAmount0RoundingUp(
denominator,
))

return numerator1 / ((sqrtPX96 / denominator) + amount)
return numerator1 / ((numerator1 / sqrtPX96) + amount)
}

func sqrtPriceMathGetNextSqrtPriceFromAmount1RoundingDown(
Expand Down

0 comments on commit e1269a7

Please sign in to comment.