Skip to content

Commit

Permalink
fix(positions list): base/currency ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
moodysalem committed May 6, 2021
1 parent 6c880d2 commit b8f61d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/PositionListItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit b8f61d5

@vercel
Copy link

@vercel vercel bot commented on b8f61d5 May 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.