corr normalization

This commit is contained in:
dimxy
2019-04-27 13:37:44 +05:00
parent eb515ba1ab
commit 3c368e8275

View File

@@ -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;