Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister committed Aug 29, 2023
1 parent 3f31ff6 commit 234f391
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/concrete/OrderBook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,10 @@ contract OrderBook is IOrderBookV3, ReentrancyGuard, Multicall, OrderBookV3Flash
);
clearStateChange.aliceInput =
// Use bob's output decimals as alice's input decimals.
//
// This is only safe if we have previously checked that the decimals
// match for alice and bob per token, otherwise bob could manipulate
// alice's intent.
Input18Amount.unwrap(aliceInput18).scaleN(
bobOrderIOCalculation.order.validOutputs[bobOrderIOCalculation.outputIOIndex].decimals, FLAG_ROUND_UP
);
Expand Down

0 comments on commit 234f391

Please sign in to comment.