Fix a div by zero bug in increaseLiquidityQuoteByInputToken calculations (#126)

This commit is contained in:
Will 2023-12-20 23:36:16 +01:00 committed by GitHub
parent 61b262de70
commit 7dcaa7e7e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;