From 3bf8ab37b54c1696c6289bfd15ec1063ecb42b2c Mon Sep 17 00:00:00 2001 From: dimxy Date: Sat, 27 Apr 2019 15:42:48 +0500 Subject: [PATCH] corr arithmetic normalization --- 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 b18a25243..04741f9eb 100644 --- a/src/cc/prices.cpp +++ b/src/cc/prices.cpp @@ -1345,7 +1345,7 @@ UniValue PricesInfo(uint256 bettxid, int32_t refheight) std::cerr << "PricesInfo() " << " totalbets=" << (totalbets / PRICES_NORMFACTOR) << std::endl; if (totalbets != 0) { //prevent zero div costbasis /= totalbets; - costbasis /= PRICES_NORMFACTOR; //denormalization + costbasis *= PRICES_NORMFACTOR; //denormalization } else costbasis = 0;