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