From d81d30a27c38cacb2fd2e74d20d4a2928ddec536 Mon Sep 17 00:00:00 2001 From: dimxy Date: Mon, 29 Apr 2019 21:35:58 +0500 Subject: [PATCH] corr costbasis prec in pricesinfo --- src/cc/prices.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/prices.cpp b/src/cc/prices.cpp index 79a217f16..30149244a 100644 --- a/src/cc/prices.cpp +++ b/src/cc/prices.cpp @@ -1344,8 +1344,8 @@ UniValue PricesInfo(uint256 bettxid, int32_t refheight) int64_t equity = totalbets + totalprofits; if (totalbets != 0) { //prevent zero div + costbasis *= PRICES_POINTFACTOR; // save last 0.0000xxxx positions costbasis /= totalbets; - costbasis *= PRICES_POINTFACTOR; //denormalization, last posiitons should be == 0000 } else costbasis = 0;