From 88a7f949331299f4f3694f994da77e637da293e4 Mon Sep 17 00:00:00 2001 From: marktoda Date: Tue, 9 Apr 2024 12:15:23 -0500 Subject: [PATCH] feat: fix comments (#239) Issue: Cantina #16 --- src/reactors/V2DutchOrderReactor.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/reactors/V2DutchOrderReactor.sol b/src/reactors/V2DutchOrderReactor.sol index af6905e8..fec9c873 100644 --- a/src/reactors/V2DutchOrderReactor.sol +++ b/src/reactors/V2DutchOrderReactor.sol @@ -14,7 +14,7 @@ import {SignedOrder, ResolvedOrder} from "../base/ReactorStructs.sol"; /// @dev resolution behavior: /// - If cosignature is invalid or not from specified cosigner, revert /// - If inputAmount is 0, then use baseInput -/// - If inputAmount is nonzero, then ensure it is less than specified baseOutput and replace startAmount +/// - If inputAmount is nonzero, then ensure it is less than specified baseInput and replace startAmount /// - For each outputAmount: /// - If amount is 0, then use baseOutput /// - If amount is nonzero, then ensure it is greater than specified baseOutput and replace startAmount @@ -107,8 +107,8 @@ contract V2DutchOrderReactor is BaseReactor { } /// @notice validate the dutch order fields - /// - deadline must be greater than or equal than decayEndTime - /// - decayEndTime must be greater than or equal to decayStartTime + /// - deadline must be greater than or equal to decayEndTime + /// - decayEndTime must be greater than decayStartTime /// - if there's input decay, outputs must not decay /// @dev Throws if the order is invalid function _validateOrder(bytes32 orderHash, V2DutchOrder memory order) internal pure {