Update included all implementations for version 0.1
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user