test
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user