From 04cadac205fadb45bd9135cbc4ae2bdd779f4c02 Mon Sep 17 00:00:00 2001 From: Kumi Date: Fri, 9 Aug 2024 08:33:06 +0200 Subject: [PATCH] fix: increase precision of fiat conversion result Extended the decimal precision of the converted XMR value from 8 to 12 places. This ensures more accurate representation of conversion rates, especially critical for high-precision financial calculations. --- src/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/main.js b/src/js/main.js index c3cb6bd..63db4fb 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -119,7 +119,7 @@ function fiatConvert(value) { if (exchangeRates[selectBox]) { let value = fiatAmount / exchangeRates[selectBox]; - xmrValue.value = value.toFixed(8); + xmrValue.value = value.toFixed(12); } }