Skip to content

Commit d0a8b12

Browse files
authored
Fix Fee Rate to 8 decimal places
Transaction details page when set to BTC has 19 decimal places > 0.0014707499999999998 BTC per kB
1 parent d8fea29 commit d0a8b12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/src/js/controllers/currency.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ angular.module('insight.currency').controller('CurrencyController',
2626
} else if (this.symbol === 'bits') {
2727
this.factor = 1000000;
2828
response = _roundFloat((value * this.factor), 2);
29-
} else {
29+
} else { // assumes symbol is BTC
3030
this.factor = 1;
31-
response = value;
31+
response = _roundFloat((value * this.factor), 8);
3232
}
3333
// prevent sci notation
3434
if (response < 1e-7) response=response.toFixed(8);

0 commit comments

Comments
 (0)