Browse Source

costbasis test period info in json

z_createrawtransaction
dimxy 5 years ago
parent
commit
dec5613c96
  1. 3
      src/cc/prices.cpp

3
src/cc/prices.cpp

@ -1801,6 +1801,9 @@ UniValue PricesInfo(uint256 bettxid, int32_t refheight)
result.push_back(Pair("reduced", prices_getreducedexpr(expr)));
result.push_back(Pair("batontxid", batontxid.GetHex()));
result.push_back(Pair("costbasis", ValueFromAmount(averageCostbasis)));
#ifdef TESTMODE
result.push_back(Pair("costbasis_test_period", 7));
#endif
prices_betjson(result, bets, leverage, endheight, lastprice);

Loading…
Cancel
Save