Commit 040ebb54 authored by Matthew Spector's avatar Matthew Spector Committed by GitHub

fix: Remove Minus Sign for FOT Display (#7419)

parent 0752314d
...@@ -71,8 +71,8 @@ function ExchangeRateRow({ trade }: { trade: InterfaceTrade }) { ...@@ -71,8 +71,8 @@ function ExchangeRateRow({ trade }: { trade: InterfaceTrade }) {
} }
function ColoredPercentRow({ percent }: { percent: Percent }) { function ColoredPercentRow({ percent }: { percent: Percent }) {
const { formatPriceImpact } = useFormatter() const { formatSlippage } = useFormatter()
return <ColorWrapper textColor={getPriceImpactColor(percent)}>{formatPriceImpact(percent)}</ColorWrapper> return <ColorWrapper textColor={getPriceImpactColor(percent)}>{formatSlippage(percent)}</ColorWrapper>
} }
function CurrencyAmountRow({ amount }: { amount: CurrencyAmount<Currency> }) { function CurrencyAmountRow({ amount }: { amount: CurrencyAmount<Currency> }) {
......
...@@ -316,7 +316,7 @@ exports[`SwapDetailsDropdown.tsx renders a trade 1`] = ` ...@@ -316,7 +316,7 @@ exports[`SwapDetailsDropdown.tsx renders a trade 1`] = `
<span <span
class="" class=""
> >
105566.373% -105566.373%
</span> </span>
</div> </div>
</div> </div>
......
...@@ -1288,7 +1288,7 @@ exports[`SwapLineItem.tsx exact input 1`] = ` ...@@ -1288,7 +1288,7 @@ exports[`SwapLineItem.tsx exact input 1`] = `
<span <span
class="" class=""
> >
105566.373% -105566.373%
</span> </span>
</div> </div>
</div> </div>
...@@ -2627,7 +2627,7 @@ exports[`SwapLineItem.tsx exact input api 1`] = ` ...@@ -2627,7 +2627,7 @@ exports[`SwapLineItem.tsx exact input api 1`] = `
<span <span
class="" class=""
> >
105566.373% -105566.373%
</span> </span>
</div> </div>
</div> </div>
...@@ -3966,7 +3966,7 @@ exports[`SwapLineItem.tsx exact output 1`] = ` ...@@ -3966,7 +3966,7 @@ exports[`SwapLineItem.tsx exact output 1`] = `
<span <span
class="" class=""
> >
105566.373% -105566.373%
</span> </span>
</div> </div>
</div> </div>
...@@ -5324,7 +5324,7 @@ exports[`SwapLineItem.tsx fee on buy 1`] = ` ...@@ -5324,7 +5324,7 @@ exports[`SwapLineItem.tsx fee on buy 1`] = `
<span <span
class="" class=""
> >
-3.000% 3.000%
</span> </span>
</div> </div>
</div> </div>
...@@ -5511,7 +5511,7 @@ exports[`SwapLineItem.tsx fee on buy 1`] = ` ...@@ -5511,7 +5511,7 @@ exports[`SwapLineItem.tsx fee on buy 1`] = `
<span <span
class="" class=""
> >
105566.373% -105566.373%
</span> </span>
</div> </div>
</div> </div>
...@@ -6869,7 +6869,7 @@ exports[`SwapLineItem.tsx fee on sell 1`] = ` ...@@ -6869,7 +6869,7 @@ exports[`SwapLineItem.tsx fee on sell 1`] = `
<span <span
class="" class=""
> >
-3.000% 3.000%
</span> </span>
</div> </div>
</div> </div>
...@@ -7056,7 +7056,7 @@ exports[`SwapLineItem.tsx fee on sell 1`] = ` ...@@ -7056,7 +7056,7 @@ exports[`SwapLineItem.tsx fee on sell 1`] = `
<span <span
class="" class=""
> >
105566.373% -105566.373%
</span> </span>
</div> </div>
</div> </div>
......
...@@ -130,7 +130,7 @@ exports[`SwapModalFooter.tsx matches base snapshot, test trade exact input 1`] = ...@@ -130,7 +130,7 @@ exports[`SwapModalFooter.tsx matches base snapshot, test trade exact input 1`] =
<span <span
class="" class=""
> >
105566.373% -105566.373%
</span> </span>
</div> </div>
</div> </div>
......
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