fix(positions list): base/currency ordering
This commit is contained in:
parent
6c880d29a6
commit
b8f61d5f90
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user