This commit is contained in:
dimxy
2019-05-09 21:28:39 +05:00
parent 6489732013
commit 7cb1794d91

View File

@@ -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());
}