From 851ca77c47c4110b0112be1a8e8fe6819d1b8fb5 Mon Sep 17 00:00:00 2001 From: crymost99 Date: Thu, 9 Aug 2018 10:46:01 +0200 Subject: [PATCH] [HOTFIX] CB-577 allow low satashi prices, should be fixed in https://github.com/ekg/fraction.js , update accordingly after pull request has been merged https://github.com/ekg/fraction.js/pull/18 --- app/lib/common/MarketClasses.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/common/MarketClasses.js b/app/lib/common/MarketClasses.js index 94706e6297..bd6f80b819 100644 --- a/app/lib/common/MarketClasses.js +++ b/app/lib/common/MarketClasses.js @@ -237,7 +237,7 @@ class Price { if (real > 100000) { real = limitByPrecision(real, 5); } - let frac = new Fraction(real); + let frac = new Fraction(real * 100, 100); let baseSats = base.toSats(), quoteSats = quote.toSats(); let numRatio = baseSats / quoteSats,