Skip to content

Commit

Permalink
not change range when high price is infinity
Browse files Browse the repository at this point in the history
  • Loading branch information
vnaysngh-mudrex committed May 6, 2024
1 parent c2cb1d3 commit 43da3b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/mint/v3/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export function useV3DerivedMintInfo(
[Bound.LOWER]:
typeof existingPosition?.tickLower === 'number'
? existingPosition.tickLower
: (invertPrice && typeof rightRangeTypedValue === 'boolean') ||
: (invertPrice && (typeof rightRangeTypedValue === 'boolean' || rightRangeTypedValue === '∞')) ||
(!invertPrice && typeof leftRangeTypedValue === 'boolean')
? tickSpaceLimits[Bound.LOWER]
: invertPrice
Expand Down

0 comments on commit 43da3b9

Please sign in to comment.