Skip to content

Commit

Permalink
Frontend.Console: round when showing account balance
Browse files Browse the repository at this point in the history
  • Loading branch information
aarani committed Dec 10, 2021
1 parent c411910 commit 897ef71
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/GWallet.Frontend.Console/UserInteraction.fs
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,12 @@ module UserInteraction =
Console.WriteLine "There are various options to specify the amount of your transaction:"
Console.WriteLine(sprintf "1. Exact amount in %A" account.Currency)
Console.WriteLine "2. Approximate amount in USD"
Console.WriteLine(sprintf "3. All balance existing in the account (%g %A)"
balance account.Currency)
Console.WriteLine(
sprintf
"3. All balance existing in the account (%s %A)"
(Formatting.DecimalAmountRounding CurrencyType.Crypto balance)
account.Currency
)

let amountOption = AskAmountOption()
AskParticularAmountOption balance amountOption
Expand Down

0 comments on commit 897ef71

Please sign in to comment.