-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
350 additions
and
292 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package gnsmath | ||
|
||
import ( | ||
"errors" | ||
) | ||
|
||
var ( | ||
errInvalidPoolSqrtPrice = errors.New("invalid pool sqrt price calculation: product/amount != sqrtPX96 or numerator1 <= product") | ||
errNextSqrtPriceOverflow = errors.New("nextSqrtPrice overflows uint160") | ||
errSqrtPriceQuotientOverflow = errors.New("GetNextSqrtPriceFromAmount1RoundingDown sqrtPx96 + quotient overflow uint160") | ||
errSqrtPriceExceedsQuotient = errors.New("sqrt price exceeds calculated quotient") | ||
errSqrtPriceZero = errors.New("sqrtPX96 should not be zero") | ||
errLiquidityZero = errors.New("liquidity should not be zero") | ||
errSqrtRatioAX96NotPositive = errors.New("sqrtRatioAX96 must be greater than zero") | ||
errAmount0DeltaOverflow = errors.New("SqrtPriceMathGetAmount0DeltaStr: overflow") | ||
errAmount1DeltaOverflow = errors.New("SqrtPriceMathGetAmount1DeltaStr: overflow") | ||
errMSBZeroInput = errors.New("input for MSB calculation should not be zero") | ||
errLSBZeroInput = errors.New("input for LSB calculation should not be zero") | ||
) |
Oops, something went wrong.