Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjae committed Jan 6, 2025
1 parent 7dff97e commit 7b03f1e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions crates/sui-framework/docs/deepbook/clob.md
Original file line number Diff line number Diff line change
Expand Up @@ -1641,11 +1641,11 @@ Place a market order to the order book.
// We first retrieve the PriceLevel <b>with</b> the lowest price by calling min_leaf on the asks Critbit Tree.
// We then match the market order by iterating through open orders on that price level in ascending order of the order id.
// Open orders that are being filled are removed from the order book.
// We stop the iteration untill all quantities are filled.
// We stop the iteration until all quantities are filled.
// If the total quantity of open orders at the lowest price level is not large enough <b>to</b> fully fill the market order,
// we <b>move</b> on <b>to</b> the next price level by calling next_leaf on the asks Critbit Tree and repeat the same procedure.
// Continue iterating over the price levels in ascending order until the market order is completely filled.
// If ther market order cannot be completely filled even after consuming all the open ask orders,
// If the market order cannot be completely filled even after consuming all the open ask orders,
// the unfilled quantity will be cancelled.
// Market ask order follows similar procedure.
// The difference is that market ask order is matched against the open bid orders.
Expand Down
6 changes: 3 additions & 3 deletions crates/sui-framework/docs/deepbook/clob_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ Emitted when a maker order is canceled.

## Struct `AllOrdersCanceledComponent`

A struct to make all orders canceled a more effifient struct
A struct to make all orders canceled a more efficient struct


<pre><code><b>struct</b> <a href="clob_v2.md#0xdee9_clob_v2_AllOrdersCanceledComponent">AllOrdersCanceledComponent</a>&lt;BaseAsset, QuoteAsset&gt; <b>has</b> <b>copy</b>, drop, store
Expand Down Expand Up @@ -2782,11 +2782,11 @@ Place a market order to the order book.
// We first retrieve the PriceLevel <b>with</b> the lowest price by calling min_leaf on the asks Critbit Tree.
// We then match the market order by iterating through open orders on that price level in ascending order of the order id.
// Open orders that are being filled are removed from the order book.
// We stop the iteration untill all quantities are filled.
// We stop the iteration until all quantities are filled.
// If the total quantity of open orders at the lowest price level is not large enough <b>to</b> fully fill the market order,
// we <b>move</b> on <b>to</b> the next price level by calling next_leaf on the asks Critbit Tree and repeat the same procedure.
// Continue iterating over the price levels in ascending order until the market order is completely filled.
// If ther market order cannot be completely filled even after consuming all the open ask orders,
// If the market order cannot be completely filled even after consuming all the open ask orders,
// the unfilled quantity will be cancelled.
// Market ask order follows similar procedure.
// The difference is that market ask order is matched against the open bid orders.
Expand Down
4 changes: 2 additions & 2 deletions crates/sui-framework/packages/deepbook/sources/clob.move
Original file line number Diff line number Diff line change
Expand Up @@ -767,11 +767,11 @@ module deepbook::clob {
// We first retrieve the PriceLevel with the lowest price by calling min_leaf on the asks Critbit Tree.
// We then match the market order by iterating through open orders on that price level in ascending order of the order id.
// Open orders that are being filled are removed from the order book.
// We stop the iteration untill all quantities are filled.
// We stop the iteration until all quantities are filled.
// If the total quantity of open orders at the lowest price level is not large enough to fully fill the market order,
// we move on to the next price level by calling next_leaf on the asks Critbit Tree and repeat the same procedure.
// Continue iterating over the price levels in ascending order until the market order is completely filled.
// If ther market order cannot be completely filled even after consuming all the open ask orders,
// If the market order cannot be completely filled even after consuming all the open ask orders,
// the unfilled quantity will be cancelled.
// Market ask order follows similar procedure.
// The difference is that market ask order is matched against the open bid orders.
Expand Down
6 changes: 3 additions & 3 deletions crates/sui-framework/packages/deepbook/sources/clob_v2.move
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ module deepbook::clob_v2 {
price: u64
}

/// A struct to make all orders canceled a more effifient struct
/// A struct to make all orders canceled a more efficient struct
public struct AllOrdersCanceledComponent<phantom BaseAsset, phantom QuoteAsset> has copy, store, drop {
/// ID of the order within the pool
order_id: u64,
Expand Down Expand Up @@ -1287,11 +1287,11 @@ module deepbook::clob_v2 {
// We first retrieve the PriceLevel with the lowest price by calling min_leaf on the asks Critbit Tree.
// We then match the market order by iterating through open orders on that price level in ascending order of the order id.
// Open orders that are being filled are removed from the order book.
// We stop the iteration untill all quantities are filled.
// We stop the iteration until all quantities are filled.
// If the total quantity of open orders at the lowest price level is not large enough to fully fill the market order,
// we move on to the next price level by calling next_leaf on the asks Critbit Tree and repeat the same procedure.
// Continue iterating over the price levels in ascending order until the market order is completely filled.
// If ther market order cannot be completely filled even after consuming all the open ask orders,
// If the market order cannot be completely filled even after consuming all the open ask orders,
// the unfilled quantity will be cancelled.
// Market ask order follows similar procedure.
// The difference is that market ask order is matched against the open bid orders.
Expand Down

0 comments on commit 7b03f1e

Please sign in to comment.