Commit b1d88317 authored by Justin Domingue's avatar Justin Domingue Committed by GitHub

fix: properly set upper/lower base/quote on manual inversion (#2023)

parent f332315d
...@@ -305,10 +305,10 @@ const useInverter = ({ ...@@ -305,10 +305,10 @@ const useInverter = ({
base?: Token base?: Token
} => { } => {
return { return {
priceUpper: invert ? priceUpper?.invert() : priceUpper, priceUpper: invert ? priceLower?.invert() : priceUpper,
priceLower: invert ? priceLower?.invert() : priceLower, priceLower: invert ? priceUpper?.invert() : priceLower,
quote, quote: invert ? base : quote,
base, base: invert ? quote : base,
} }
} }
......
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