Fix a div by zero bug in increaseLiquidityQuoteByInputToken calculations (#126)
This commit is contained in:
parent
61b262de70
commit
7dcaa7e7e7
|
@ -31,7 +31,7 @@ export class PositionUtil {
|
|||
tickLowerIndex: number,
|
||||
tickUpperIndex: number
|
||||
): PositionStatus {
|
||||
if (tickCurrentIndex < tickLowerIndex) {
|
||||
if (tickCurrentIndex <= tickLowerIndex) {
|
||||
return PositionStatus.BelowRange;
|
||||
} else if (tickCurrentIndex < tickUpperIndex) {
|
||||
return PositionStatus.InRange;
|
||||
|
|
Loading…
Reference in New Issue