Skip to content

Commit

Permalink
reject InvalidInputLotsSize
Browse files Browse the repository at this point in the history
  • Loading branch information
skrrb committed Jul 7, 2023
1 parent e990ab6 commit b0de53b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions programs/openbook-v2/fuzz/fuzz_targets/multiple_orders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ mod error_parser {
pub fn place_order(err: ProgramError) -> Corpus {
match err {
e if e == OpenBookError::InvalidInputLots.into() => Corpus::Reject,
e if e == OpenBookError::InvalidInputLotsSize.into() => Corpus::Reject,
e if e == OpenBookError::InvalidInputPriceLots.into() => Corpus::Reject,
e if e == OpenBookError::InvalidOraclePrice.into() => Corpus::Keep,
e if e == OpenBookError::InvalidOrderSize.into() => Corpus::Keep,
e if e == OpenBookError::InvalidPriceLots.into() => Corpus::Keep,
e if e == OpenBookError::OpenOrdersFull.into() => Corpus::Keep,
e if e == OpenBookError::WouldSelfTrade.into() => Corpus::Keep,
Expand All @@ -324,13 +324,13 @@ mod error_parser {
pub fn place_order_pegged(err: ProgramError) -> Corpus {
match err {
e if e == OpenBookError::InvalidInputLots.into() => Corpus::Reject,
e if e == OpenBookError::InvalidInputLotsSize.into() => Corpus::Reject,
e if e == OpenBookError::InvalidInputPegLimit.into() => Corpus::Reject,
e if e == OpenBookError::InvalidInputPriceLots.into() => Corpus::Reject,
e if e == OpenBookError::InvalidInputStaleness.into() => Corpus::Reject,
e if e == OpenBookError::InvalidOraclePrice.into() => Corpus::Keep,
e if e == OpenBookError::InvalidOrderPostIOC.into() => Corpus::Keep,
e if e == OpenBookError::InvalidOrderPostMarket.into() => Corpus::Keep,
e if e == OpenBookError::InvalidOrderSize.into() => Corpus::Keep,
e if e == OpenBookError::InvalidPriceLots.into() => Corpus::Keep,
e if e == OpenBookError::WouldSelfTrade.into() => Corpus::Keep,
e if e == TokenError::InsufficientFunds.into() => Corpus::Keep,
Expand All @@ -341,10 +341,10 @@ mod error_parser {
pub fn place_take_order(err: ProgramError) -> Corpus {
match err {
e if e == OpenBookError::InvalidInputLots.into() => Corpus::Reject,
e if e == OpenBookError::InvalidInputLotsSize.into() => Corpus::Reject,
e if e == OpenBookError::InvalidInputOrderType.into() => Corpus::Reject,
e if e == OpenBookError::InvalidInputPriceLots.into() => Corpus::Reject,
e if e == OpenBookError::InvalidOraclePrice.into() => Corpus::Keep,
e if e == OpenBookError::InvalidOrderSize.into() => Corpus::Keep,
e if e == TokenError::InsufficientFunds.into() => Corpus::Keep,
_ => panic!("{}", err),
}
Expand Down

0 comments on commit b0de53b

Please sign in to comment.