Improved tokens amount representation

pull/2/head
Michael Scoff 7 years ago
parent 0964d239ab
commit cd21d69592
  1. 5
      Trust/Models/Token.swift

@ -14,8 +14,9 @@ struct Token {
extension Token {
private static let numberFormatter: NumberFormatter = {
let numberFormatter = NumberFormatter()
numberFormatter.minimumFractionDigits = 3
numberFormatter.maximumFractionDigits = 3
numberFormatter.minimumFractionDigits = 0
numberFormatter.maximumFractionDigits = 8
numberFormatter.roundingMode = .down
return numberFormatter
}()

Loading…
Cancel
Save