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;