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 = ({
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,
}
}
......
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