diff --git a/src/components/swap/SwapLineItem.tsx b/src/components/swap/SwapLineItem.tsx index da5f619ad1..58548de130 100644 --- a/src/components/swap/SwapLineItem.tsx +++ b/src/components/swap/SwapLineItem.tsx @@ -71,8 +71,8 @@ function ExchangeRateRow({ trade }: { trade: InterfaceTrade }) { } function ColoredPercentRow({ percent }: { percent: Percent }) { - const { formatPriceImpact } = useFormatter() - return {formatPriceImpact(percent)} + const { formatSlippage } = useFormatter() + return {formatSlippage(percent)} } function CurrencyAmountRow({ amount }: { amount: CurrencyAmount }) { diff --git a/src/components/swap/__snapshots__/SwapDetailsDropdown.test.tsx.snap b/src/components/swap/__snapshots__/SwapDetailsDropdown.test.tsx.snap index 0ff9d83c87..50660d221c 100644 --- a/src/components/swap/__snapshots__/SwapDetailsDropdown.test.tsx.snap +++ b/src/components/swap/__snapshots__/SwapDetailsDropdown.test.tsx.snap @@ -316,7 +316,7 @@ exports[`SwapDetailsDropdown.tsx renders a trade 1`] = ` - 105566.373% + -105566.373% diff --git a/src/components/swap/__snapshots__/SwapLineItem.test.tsx.snap b/src/components/swap/__snapshots__/SwapLineItem.test.tsx.snap index 1ae30f78f9..111ab24d81 100644 --- a/src/components/swap/__snapshots__/SwapLineItem.test.tsx.snap +++ b/src/components/swap/__snapshots__/SwapLineItem.test.tsx.snap @@ -1288,7 +1288,7 @@ exports[`SwapLineItem.tsx exact input 1`] = ` - 105566.373% + -105566.373% @@ -2627,7 +2627,7 @@ exports[`SwapLineItem.tsx exact input api 1`] = ` - 105566.373% + -105566.373% @@ -3966,7 +3966,7 @@ exports[`SwapLineItem.tsx exact output 1`] = ` - 105566.373% + -105566.373% @@ -5324,7 +5324,7 @@ exports[`SwapLineItem.tsx fee on buy 1`] = ` - -3.000% + 3.000% @@ -5511,7 +5511,7 @@ exports[`SwapLineItem.tsx fee on buy 1`] = ` - 105566.373% + -105566.373% @@ -6869,7 +6869,7 @@ exports[`SwapLineItem.tsx fee on sell 1`] = ` - -3.000% + 3.000% @@ -7056,7 +7056,7 @@ exports[`SwapLineItem.tsx fee on sell 1`] = ` - 105566.373% + -105566.373% diff --git a/src/components/swap/__snapshots__/SwapModalFooter.test.tsx.snap b/src/components/swap/__snapshots__/SwapModalFooter.test.tsx.snap index 9a80ee4155..61af8963a5 100644 --- a/src/components/swap/__snapshots__/SwapModalFooter.test.tsx.snap +++ b/src/components/swap/__snapshots__/SwapModalFooter.test.tsx.snap @@ -130,7 +130,7 @@ exports[`SwapModalFooter.tsx matches base snapshot, test trade exact input 1`] = - 105566.373% + -105566.373%