From a354bde4e0c51166ab0d4427ab7e80132bb86f35 Mon Sep 17 00:00:00 2001 From: 0age <0age@protonmail.com> Date: Wed, 28 Feb 2024 13:39:55 -0500 Subject: [PATCH] add a clarifying comment --- src/core/lib/OrderCombiner.sol | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/lib/OrderCombiner.sol b/src/core/lib/OrderCombiner.sol index a584d74..a85d04a 100644 --- a/src/core/lib/OrderCombiner.sol +++ b/src/core/lib/OrderCombiner.sol @@ -453,9 +453,12 @@ contract OrderCombiner is OrderFulfiller, FulfillmentApplier { // Apply criteria resolvers to each order as applicable. _applyCriteriaResolvers(advancedOrders, criteriaResolvers); - // Emit an event for each order signifying that it has been fulfilled. + // Iterate over each order to check authorization status (for restricted + // orders), generate orders (for contract orders), and emit events (for + // all available orders) signifying that they have been fulfilled. // Skip overflow checks as all for loops are indexed starting at zero. unchecked { + // Declare stack variable outside of the loop to track order hash. bytes32 orderHash; // Iterate over each order.