Update included all implementations for version 0.1

This commit is contained in:
Lev
2021-07-05 21:27:45 -05:00
parent 86fc0d8f78
commit 827b5419b8
9 changed files with 530 additions and 125 deletions

View File

@ -78,7 +78,7 @@ bool Wallet::canFulfillOrder(OrderBookEntry order)
{
double amount = order.amount;
std::string currency = currs[0];
std::cout << "Wallet::canFulfillOrder " << currency << " : " << amount << std::endl;
//std::cout << "Wallet::canFulfillOrder " << currency << " : " << amount << std::endl;
return containsCurrency(currency, amount);
}
@ -87,7 +87,7 @@ bool Wallet::canFulfillOrder(OrderBookEntry order)
{
double amount = order.amount * order.price;
std::string currency = currs[1];
std::cout << "Wallet::canFulfillOrder " << currency << " : " << amount << std::endl;
//std::cout << "Wallet::canFulfillOrder " << currency << " : " << amount << std::endl;
return containsCurrency(currency, amount);
}