Skip to content

Commit

Permalink
feat: fix comments (#239)
Browse files Browse the repository at this point in the history
Issue: Cantina #16
  • Loading branch information
marktoda authored Apr 9, 2024
1 parent 2bc445d commit 88a7f94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/reactors/V2DutchOrderReactor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 88a7f94

Please sign in to comment.