errors.gno
0.98 Kb ยท 19 lines
1package gnsmath
2
3import (
4 "errors"
5)
6
7var (
8 errInvalidPoolSqrtPrice = errors.New("invalid pool sqrt price calculation: product/amount != sqrtPX96 or numerator1 <= product")
9 errSqrtPriceExceedsQuotient = errors.New("sqrt price exceeds calculated quotient")
10 errSqrtPriceZero = errors.New("sqrtPX96 should not be zero")
11 errLiquidityZero = errors.New("liquidity should not be zero")
12 errSqrtRatioAX96Zero = errors.New("sqrtRatioAX96 must be greater than zero")
13 errAmount0DeltaOverflow = errors.New("GetAmount0Delta: overflow")
14 errAmount1DeltaOverflow = errors.New("GetAmount1Delta: overflow")
15 errMSBZeroInput = errors.New("input for MSB calculation should not be zero")
16 errLSBZeroInput = errors.New("input for LSB calculation should not be zero")
17 errGetAmount0DeltaNilInput = errors.New("GetAmount0Delta: input parameters cannot be nil")
18 errGetAmount1DeltaNilInput = errors.New("GetAmount1Delta: input parameters cannot be nil")
19)