Skip to content

Commit

Permalink
Round prices to 6 decimal places
Browse files Browse the repository at this point in the history
Some pairs like BTC/CHIPS will always round to 0 at 2 decimal places.
  • Loading branch information
lukechilds committed Mar 22, 2018
1 parent 39208da commit 1685899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/renderer/components/DepthChart.js
Expand Up @@ -6,7 +6,7 @@ import './DepthChart.scss';

const roundPrice = array => array.map(x => ({
...x,
price: roundTo(x.price, 2),
price: roundTo(x.price, 6),
}));

const DepthChart = props => {
Expand Down

0 comments on commit 1685899

Please sign in to comment.