Skip to content

Commit

Permalink
Merge pull request #2453 from KomodoPlatform/price-precision
Browse files Browse the repository at this point in the history
extend to 8dp for portfolio items
  • Loading branch information
smk762 authored Jun 21, 2024
2 parents f3be2a0 + 3962c34 commit a7d5afe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion atomic_defi_design/Dex/Constants/General.qml
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ QtObject {
}
return diffPrefix(received) +
(fiat === API.app.settings_pg.current_fiat ? API.app.settings_pg.current_fiat_sign : API.app.settings_pg.current_currency_sign)
+ " " + (amount < 1E5 ? formatDouble(parseFloat(amount), precision, true) : nFormatter(parseFloat(amount), 2))
+ " " + (amount < 1E5 ? formatDouble(parseFloat(amount), precision, true) : nFormatter(parseFloat(amount), precision))
}

function formatPercent(value, show_prefix=true) {
Expand Down
2 changes: 1 addition & 1 deletion src/core/atomicdex/services/price/global.provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ namespace atomic_dex
{
if (current_price_f < 1.0)
{
default_precision = 5;
default_precision = 8;
}
}
//! Trick: If there conversion in a fixed representation is 0.00 then use a default precision to 2 without fixed ios flags
Expand Down

0 comments on commit a7d5afe

Please sign in to comment.