Commit dce187e4 authored by Noah Zinsmeister's avatar Noah Zinsmeister

fix price bug

parent 8859ff69
...@@ -173,8 +173,8 @@ export function getPriceOrderingFromPositionForUI( ...@@ -173,8 +173,8 @@ export function getPriceOrderingFromPositionForUI(
// otherwise, just return the default // otherwise, just return the default
return { return {
priceLower: position.token0PriceUpper.invert(), priceLower: position.token0PriceLower,
priceUpper: position.token0PriceLower.invert(), priceUpper: position.token0PriceUpper,
quote: token1, quote: token1,
base: token0, base: token0,
} }
...@@ -224,7 +224,7 @@ export default function PositionListItem({ positionDetails }: PositionListItemPr ...@@ -224,7 +224,7 @@ export default function PositionListItem({ positionDetails }: PositionListItemPr
const [feeValue0, feeValue1] = useV3PositionFees(pool ?? undefined, positionDetails) const [feeValue0, feeValue1] = useV3PositionFees(pool ?? undefined, positionDetails)
// check if price is within range // check if price is within range
const outOfRange: boolean = pool ? pool.tickCurrent < tickLower || pool.tickCurrent > tickUpper : false const outOfRange: boolean = pool ? pool.tickCurrent < tickLower || pool.tickCurrent >= tickUpper : false
const positionSummaryLink = '/pool/' + positionDetails.tokenId const positionSummaryLink = '/pool/' + positionDetails.tokenId
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment