Commit b8f61d5f authored by Moody Salem's avatar Moody Salem

fix(positions list): base/currency ordering

parent 6c880d29
...@@ -202,8 +202,8 @@ export default function PositionListItem({ positionDetails }: PositionListItemPr ...@@ -202,8 +202,8 @@ export default function PositionListItem({ positionDetails }: PositionListItemPr
// prices // prices
let { priceLower, priceUpper, base, quote } = getPriceOrderingFromPositionForUI(position) let { priceLower, priceUpper, base, quote } = getPriceOrderingFromPositionForUI(position)
const inverted = token1 ? base?.equals(token1) : undefined const inverted = token1 ? base?.equals(token1) : undefined
const currencyQuote = inverted ? currency0 : currency1 const currencyQuote = inverted ? currency1 : currency0
const currencyBase = inverted ? currency1 : currency0 const currencyBase = inverted ? currency0 : currency1
// 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
......
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