addfunding now in coins

try correct fraction of profits
This commit is contained in:
dimxy
2019-04-19 22:12:21 +05:00
parent 0684f7ab6e
commit 01dfdc6b67
2 changed files with 3 additions and 3 deletions

View File

@@ -663,7 +663,7 @@ int64_t prices_syntheticprofits(int64_t &costbasis, int32_t firstheight, int32_t
//std::cerr << "prices_syntheticprofits() profits double=" << (double)price / (double)costbasis -1.0 << std::endl;
//double dprofits = (double)price / (double)costbasis - 1.0;
profits *= leverage * positionsize;
profits *= leverage * positionsize / SATOSHIDEN;
//dprofits *= leverage * positionsize;
std::cerr << "prices_syntheticprofits() val profits=" << profits << std::endl;
//std::cerr << "prices_syntheticprofits() dprofits=" << dprofits << std::endl;