Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix comments
Signed-off-by: Mikhail Tagirov <[email protected]>
  • Loading branch information
wer1st committed Dec 11, 2023
commit 353adf37257a629bb09ca7d50e508864ff2944ef
4 changes: 1 addition & 3 deletions pallets/order-book/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,7 @@ pub mod pallet {
InvalidMaxLotSize,
/// Tick size & step lot size are too big and their multiplication overflows Balance
TickSizeAndStepLotSizeAreTooBig,
/// Product of tick and step lot sizes goes out of precision. It must be accurately
/// represented by fixed-precision float to prevent rounding errors. I.e. the product
/// should not have more than 18 digits after the comma.
/// Product of tick and step lot sizes goes out of precision. It must be accurately represented by fixed-precision float to prevent rounding errors. I.e. the product should not have more than 18 digits after the comma.
TickSizeAndStepLotSizeLosePrecision,
/// Max lot size cannot be more that total supply of base asset
MaxLotSizeIsMoreThanTotalSupply,
Expand Down
6 changes: 2 additions & 4 deletions pallets/qa-tools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,11 @@ pub mod pallet {
NotInWhitelist,

// order_book pallet errors
/// Did not find an order book with given id to fill. Likely an error with
/// order book creation.
/// Did not find an order book with given id to fill. Likely an error with order book creation.
CannotFillUnknownOrderBook,
/// Order Book already exists
OrderBookAlreadyExists,
/// Price step, best price, and worst price must be a multiple of
/// order book's tick size. Price step must also be non-zero.
/// Price step, best price, and worst price must be a multiple of order book's tick size. Price step must also be non-zero.
IncorrectPrice,
/// Provided range is incorrect, check that lower bound is less or equal than the upper one.
EmptyRandomRange,
Expand Down