added logging accum costbasis
This commit is contained in:
@@ -1338,6 +1338,7 @@ UniValue PricesInfo(uint256 bettxid, int32_t refheight)
|
|||||||
totalbets += b.amount;
|
totalbets += b.amount;
|
||||||
totalprofits += b.profits;
|
totalprofits += b.profits;
|
||||||
costbasis += b.amount * b.costbasis;
|
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;
|
int64_t equity = totalbets + totalprofits;
|
||||||
|
|||||||
Reference in New Issue
Block a user