Perp: Don't allow orders with effective price_lots<1

This commit is contained in:
Christian Kamm 2023-01-20 13:24:52 +01:00
parent 8bf6210991
commit 1b4140c078
1 changed files with 1 additions and 0 deletions

View File

@ -154,6 +154,7 @@ impl Order {
}
_ => fixed_price_data(price_lots)?,
};
require_gte!(price_lots, 1);
Ok((price_lots, price_data))
}