fix(positions list): base/currency ordering

This commit is contained in:
Moody Salem 2021-05-06 09:57:12 -04:00
parent 6c880d29a6
commit b8f61d5f90
No known key found for this signature in database
GPG Key ID: 8CB5CD10385138DB

@ -202,8 +202,8 @@ export default function PositionListItem({ positionDetails }: PositionListItemPr
// prices
let { priceLower, priceUpper, base, quote } = getPriceOrderingFromPositionForUI(position)
const inverted = token1 ? base?.equals(token1) : undefined
const currencyQuote = inverted ? currency0 : currency1
const currencyBase = inverted ? currency1 : currency0
const currencyQuote = inverted ? currency1 : currency0
const currencyBase = inverted ? currency0 : currency1
// check if price is within range
const outOfRange: boolean = pool ? pool.tickCurrent < tickLower || pool.tickCurrent >= tickUpper : false