Update added the canFulfillOrder function
This commit is contained in:
@ -83,7 +83,16 @@ void MerkelMain::enterAsk()
|
||||
tokens[0],
|
||||
OrderBookType::ask
|
||||
);
|
||||
orderBook.insertOrder(obe);
|
||||
if(wallet.canFulfillOrder(obe))
|
||||
{
|
||||
std::cout << "Wallet looks good. " << std::endl;
|
||||
orderBook.insertOrder(obe);
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "Wallet has insufficient asks" << std::endl;
|
||||
}
|
||||
|
||||
}catch (const std::exception& e)
|
||||
{
|
||||
std::cout << " MerkelMain::enterAsk Bad input " << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user