Skip to content

Commit

Permalink
Merge pull request #1502 from p2p-org/fix/pwn-9377
Browse files Browse the repository at this point in the history
[PWN-9377] Fix token amount formatting on the Wallet screen
  • Loading branch information
zafar4aev authored Jul 25, 2023
2 parents 877e6fd + 58c6468 commit 1cd8030
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ final class HomeAccountsViewModel: BaseViewModel, ObservableObject {
.filter { $0.isUSDC }
.reduce(0) { $0 + $1.amount }
)
return "\(equityValue.tokenAmountFormattedString(symbol: "USDC", maximumFractionDigits: 3))"
return "\(equityValue.tokenAmountFormattedString(symbol: "USDC", maximumFractionDigits: 2, roundingMode: .down))"
}
.receive(on: RunLoop.main)
.assignWeak(to: \.usdcAmount, on: self)
Expand Down

0 comments on commit 1cd8030

Please sign in to comment.