From d0a8b123d291e9f29c953c58a6a5182d2d5bc231 Mon Sep 17 00:00:00 2001 From: Dabura667 Date: Sun, 9 Apr 2017 11:05:06 +0900 Subject: [PATCH] Fix Fee Rate to 8 decimal places Transaction details page when set to BTC has 19 decimal places > 0.0014707499999999998 BTC per kB --- public/src/js/controllers/currency.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/js/controllers/currency.js b/public/src/js/controllers/currency.js index 51b455e..2ccbfe4 100644 --- a/public/src/js/controllers/currency.js +++ b/public/src/js/controllers/currency.js @@ -26,9 +26,9 @@ angular.module('insight.currency').controller('CurrencyController', } else if (this.symbol === 'bits') { this.factor = 1000000; response = _roundFloat((value * this.factor), 2); - } else { + } else { // assumes symbol is BTC this.factor = 1; - response = value; + response = _roundFloat((value * this.factor), 8); } // prevent sci notation if (response < 1e-7) response=response.toFixed(8);