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