fix tick bug
This commit is contained in:
parent
0dd5e6b33f
commit
00438bea12
@ -206,14 +206,14 @@ export function useDerivedMintInfo(
|
|||||||
} = useMemo(() => {
|
} = useMemo(() => {
|
||||||
return {
|
return {
|
||||||
[Bound.LOWER]:
|
[Bound.LOWER]:
|
||||||
existingPosition?.tickLower && typeof existingPosition.tickLower === 'number'
|
typeof existingPosition?.tickLower === 'number'
|
||||||
? existingPosition.tickLower
|
? existingPosition.tickLower
|
||||||
: invertPrice
|
: invertPrice
|
||||||
? tryParseTick(token1, token0, feeAmount, rightRangeTypedValue)
|
? tryParseTick(token1, token0, feeAmount, rightRangeTypedValue)
|
||||||
: tryParseTick(token0, token1, feeAmount, leftRangeTypedValue),
|
: tryParseTick(token0, token1, feeAmount, leftRangeTypedValue),
|
||||||
[Bound.UPPER]:
|
[Bound.UPPER]:
|
||||||
existingPosition?.tickUpper && typeof existingPosition.tickUpper === 'number'
|
typeof existingPosition?.tickUpper === 'number'
|
||||||
? existingPosition?.tickUpper
|
? existingPosition.tickUpper
|
||||||
: invertPrice
|
: invertPrice
|
||||||
? tryParseTick(token1, token0, feeAmount, leftRangeTypedValue)
|
? tryParseTick(token1, token0, feeAmount, leftRangeTypedValue)
|
||||||
: tryParseTick(token0, token1, feeAmount, rightRangeTypedValue),
|
: tryParseTick(token0, token1, feeAmount, rightRangeTypedValue),
|
||||||
|
Loading…
Reference in New Issue
Block a user