Skip to content

Commit

Permalink
Merge pull request #1692 from p2p-org/bugfix/pwn-879
Browse files Browse the repository at this point in the history
[ETH-879] Fix feeBpsFormatter
  • Loading branch information
lisemyon authored Feb 9, 2024
2 parents f4de6a4 + 22c1040 commit 6e68416
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6e68416

Please sign in to comment.