From 22c1040d2f5a6bedaca0b533279b228410a9ee7d Mon Sep 17 00:00:00 2001 From: Elizaveta Semenova Date: Fri, 9 Feb 2024 15:31:56 +0300 Subject: [PATCH] [ETH-879] Fix feeBpsFormatter --- .../Scenes/Main/Swap/SwapSettings/View/SwapSettingsView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/p2p_wallet/Scenes/Main/Swap/SwapSettings/View/SwapSettingsView.swift b/p2p_wallet/Scenes/Main/Swap/SwapSettings/View/SwapSettingsView.swift index 0fabbb289..486ca1592 100644 --- a/p2p_wallet/Scenes/Main/Swap/SwapSettings/View/SwapSettingsView.swift +++ b/p2p_wallet/Scenes/Main/Swap/SwapSettings/View/SwapSettingsView.swift @@ -224,9 +224,10 @@ private func feeBpsFormatter(_ feeBps: Int) -> String { formatter.minimumIntegerDigits = 1 formatter.maximumIntegerDigits = 3 formatter.maximumFractionDigits = 2 + formatter.multiplier = 1 formatter.decimalSeparator = "." - return formatter.string(from: NSDecimalNumber(decimal: Decimal(feeBps) / 1000)) ?? "N/A" + return formatter.string(from: NSDecimalNumber(decimal: Decimal(feeBps) / 100)) ?? "N/A" } // struct SwapSettingsView_Previews: PreviewProvider {