From 3c368e8275f7763d9e9940e21605ecf3355876c8 Mon Sep 17 00:00:00 2001 From: dimxy Date: Sat, 27 Apr 2019 13:37:44 +0500 Subject: [PATCH] corr 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 da1098d50..6e785b6fc 100644 --- a/src/cc/prices.cpp +++ b/src/cc/prices.cpp @@ -1342,7 +1342,7 @@ UniValue PricesInfo(uint256 bettxid, int32_t refheight) } int64_t equity = totalbets + totalprofits; - costbasis /= totalbets * PRICES_NORMFACTOR; + costbasis /= totalbets / PRICES_NORMFACTOR; int64_t liqprice = costbasis - costbasis / leverage;