Skip to content

Commit

Permalink
put bool into var
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzschoff committed Jun 28, 2023
1 parent b634b9e commit c57fec9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions markets/perps-market/contracts/storage/PerpsMarket.sol
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ library PerpsMarket {
int newSize
) internal view {
// Allow users to reduce an order no matter the market conditions.
if (
!(MathUtil.sameSide(oldSize, newSize) && MathUtil.abs(newSize) <= MathUtil.abs(oldSize))
) {
bool isNotReducingInterest = !(MathUtil.sameSide(oldSize, newSize) &&
MathUtil.abs(newSize) <= MathUtil.abs(oldSize));
if (isNotReducingInterest) {
int newSkew = self.skew - oldSize + newSize;

int newMarketSize = self.size.toInt() -
Expand Down

0 comments on commit c57fec9

Please sign in to comment.