Skip to content

Commit

Permalink
Remove run limit order
Browse files Browse the repository at this point in the history
  • Loading branch information
crnbarr93 committed Feb 22, 2024
1 parent 09c898a commit ebfe61a
Show file tree
Hide file tree
Showing 2 changed files with 832 additions and 846 deletions.
15 changes: 0 additions & 15 deletions contracts/orderbook/src/order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,21 +149,6 @@ pub fn place_market(
.add_attribute("owner", info.sender))
}

pub fn run_limit_order(
storage: &mut dyn Storage,
order: &mut LimitOrder,
) -> Result<Vec<BankMsg>, ContractError> {
let mut market_order: MarketOrder = order.clone().into();
let (fulfillments, order_fulfillment_msg) =
run_market_order(storage, &mut market_order, Some(order.tick_id))?;
let mut fulfillment_msgs = resolve_fulfillments(storage, fulfillments)?;
fulfillment_msgs.push(order_fulfillment_msg);

order.quantity = market_order.quantity;

Ok(fulfillment_msgs)
}

#[allow(clippy::manual_range_contains)]
pub fn run_market_order(
storage: &mut dyn Storage,
Expand Down
Loading

0 comments on commit ebfe61a

Please sign in to comment.