Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
fix: properly set upper/lower base/quote on manual inversion (#2023)
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Domingue authored Jul 12, 2021
1 parent f332315 commit b1d8831
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/Pool/PositionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,10 @@ const useInverter = ({
base?: Token
} => {
return {
priceUpper: invert ? priceUpper?.invert() : priceUpper,
priceLower: invert ? priceLower?.invert() : priceLower,
quote,
base,
priceUpper: invert ? priceLower?.invert() : priceUpper,
priceLower: invert ? priceUpper?.invert() : priceLower,
quote: invert ? base : quote,
base: invert ? quote : base,
}
}

Expand Down

0 comments on commit b1d8831

Please sign in to comment.