Browse Source

test

pull/27/head
dimxy 5 years ago
parent
commit
7cb1794d91
  1. 5
      src/cc/prices.cpp

5
src/cc/prices.cpp

@ -95,13 +95,15 @@ typedef struct BetInfo {
int64_t rektfee;
int32_t lastheight;
int16_t leverage;
bool isOpen, isRekt, isUp;
bool isOpen, isRekt;
uint256 tokenid;
std::vector<uint16_t> vecparsed;
std::vector<onebetdata> bets;
CPubKey pk;
bool isUp;
BetInfo() {
averageCostbasis = firstprice = lastprice = liquidationprice = equity = 0;
lastheight = 0;
@ -2181,6 +2183,7 @@ UniValue PricesGetOrderbook()
}
else {
totalRekt += (betspos - book[0].rektfee);
//TODO: store rekt
}
book.erase(book.begin());
}

Loading…
Cancel
Save