fix tick bug

This commit is contained in:
Noah Zinsmeister 2021-04-26 14:21:42 -04:00
parent 0dd5e6b33f
commit 00438bea12
No known key found for this signature in database
GPG Key ID: 83022DD49188C9F2

@ -206,14 +206,14 @@ export function useDerivedMintInfo(
} = useMemo(() => {
return {
[Bound.LOWER]:
existingPosition?.tickLower && typeof existingPosition.tickLower === 'number'
typeof existingPosition?.tickLower === 'number'
? existingPosition.tickLower
: invertPrice
? tryParseTick(token1, token0, feeAmount, rightRangeTypedValue)
: tryParseTick(token0, token1, feeAmount, leftRangeTypedValue),
[Bound.UPPER]:
existingPosition?.tickUpper && typeof existingPosition.tickUpper === 'number'
? existingPosition?.tickUpper
typeof existingPosition?.tickUpper === 'number'
? existingPosition.tickUpper
: invertPrice
? tryParseTick(token1, token0, feeAmount, leftRangeTypedValue)
: tryParseTick(token0, token1, feeAmount, rightRangeTypedValue),