case statamenet was missing the new state, settlement_populated fixed

This commit is contained in:
Taha Afzal committed 2018-10-27 22:13:01 -04:00
1 parent c6039723da
commit a586b75226
2 files changed
+2 -1

No files matched your search

@@ -397,6 +397,7 @@ bts::api::orderman::OrderStatus SpreaderOrder::_get_order_status () const{
bts::api::orderman::OrderStatus::ORDER_STATUS_CANCELED :
bts::api::orderman::OrderStatus::ORDER_STATUS_COMPLETED;
case SpreaderState::START:
case SpreaderState::WAITING_FOR_INIT_DATA:
return bts::api::orderman::OrderStatus::ORDER_STATUS_INACTIVE;
default:
bts_assert(false);
@@ -60,7 +60,7 @@ public:
const SingleLegQuoter& quoter() const {return _quoter;}
const bts::orderman::Book& book () const {return _book;}
Price settlement_price() const {return Price(_settlement_price.price());}
bool settlement_populated() const {return os::is_nan(_settlement_price.price());}
bool settlement_populated() const {return !os::is_nan(_settlement_price.price());}
SpreaderChildOrderState& order_update_message () {return _quoter_child_order_state;}
bts::orderman::OrderKey key() {return _quoter_child_order_state.order_key();}
bts::orderman::OrderKey order_key() {return _quoter_child_order_state.order_key();}