added logging accum costbasis

This commit is contained in:
dimxy
2019-04-27 13:23:57 +05:00
parent 8de1d2cd1b
commit 9c2ee630b9

View File

@@ -1338,6 +1338,7 @@ UniValue PricesInfo(uint256 bettxid, int32_t refheight)
totalbets += b.amount;
totalprofits += b.profits;
costbasis += b.amount * b.costbasis;
std::cerr << "PricesInfo() acc costbasis=" << costbasis << " b.amount=" << b.amount << " b.costbasis=" << b.costbasis << std::endl;
}
int64_t equity = totalbets + totalprofits;