diff --git a/.forge-snapshots/Base-DutchOrder-BaseExecuteSingleWithFee.snap b/.forge-snapshots/Base-DutchOrder-BaseExecuteSingleWithFee.snap deleted file mode 100644 index e77e2b32..00000000 --- a/.forge-snapshots/Base-DutchOrder-BaseExecuteSingleWithFee.snap +++ /dev/null @@ -1 +0,0 @@ -181978 \ No newline at end of file diff --git a/.forge-snapshots/Base-DutchOrder-ExecuteBatch.snap b/.forge-snapshots/Base-DutchOrder-ExecuteBatch.snap deleted file mode 100644 index 333372f2..00000000 --- a/.forge-snapshots/Base-DutchOrder-ExecuteBatch.snap +++ /dev/null @@ -1 +0,0 @@ -196879 \ No newline at end of file diff --git a/.forge-snapshots/Base-DutchOrder-ExecuteBatchMultipleOutputs.snap b/.forge-snapshots/Base-DutchOrder-ExecuteBatchMultipleOutputs.snap deleted file mode 100644 index 8e513b1a..00000000 --- a/.forge-snapshots/Base-DutchOrder-ExecuteBatchMultipleOutputs.snap +++ /dev/null @@ -1 +0,0 @@ -206650 \ No newline at end of file diff --git a/.forge-snapshots/Base-DutchOrder-ExecuteBatchMultipleOutputsDifferentTokens.snap b/.forge-snapshots/Base-DutchOrder-ExecuteBatchMultipleOutputsDifferentTokens.snap deleted file mode 100644 index 7db95251..00000000 --- a/.forge-snapshots/Base-DutchOrder-ExecuteBatchMultipleOutputsDifferentTokens.snap +++ /dev/null @@ -1 +0,0 @@ -260307 \ No newline at end of file diff --git a/.forge-snapshots/Base-DutchOrder-ExecuteBatchNativeOutput.snap b/.forge-snapshots/Base-DutchOrder-ExecuteBatchNativeOutput.snap deleted file mode 100644 index 3705f47f..00000000 --- a/.forge-snapshots/Base-DutchOrder-ExecuteBatchNativeOutput.snap +++ /dev/null @@ -1 +0,0 @@ -190447 \ No newline at end of file diff --git a/.forge-snapshots/Base-DutchOrder-ExecuteSingle.snap b/.forge-snapshots/Base-DutchOrder-ExecuteSingle.snap deleted file mode 100644 index 787d6f15..00000000 --- a/.forge-snapshots/Base-DutchOrder-ExecuteSingle.snap +++ /dev/null @@ -1 +0,0 @@ -148194 \ No newline at end of file diff --git a/.forge-snapshots/Base-DutchOrder-ExecuteSingleNativeOutput.snap b/.forge-snapshots/Base-DutchOrder-ExecuteSingleNativeOutput.snap deleted file mode 100644 index 27e5bfc7..00000000 --- a/.forge-snapshots/Base-DutchOrder-ExecuteSingleNativeOutput.snap +++ /dev/null @@ -1 +0,0 @@ -133774 \ No newline at end of file diff --git a/.forge-snapshots/Base-DutchOrder-ExecuteSingleValidation.snap b/.forge-snapshots/Base-DutchOrder-ExecuteSingleValidation.snap deleted file mode 100644 index d15c3eda..00000000 --- a/.forge-snapshots/Base-DutchOrder-ExecuteSingleValidation.snap +++ /dev/null @@ -1 +0,0 @@ -157505 \ No newline at end of file diff --git a/.forge-snapshots/Base-ExclusiveDutchOrder-BaseExecuteSingleWithFee.snap b/.forge-snapshots/Base-ExclusiveDutchOrder-BaseExecuteSingleWithFee.snap deleted file mode 100644 index bda45bd8..00000000 --- a/.forge-snapshots/Base-ExclusiveDutchOrder-BaseExecuteSingleWithFee.snap +++ /dev/null @@ -1 +0,0 @@ -182186 \ No newline at end of file diff --git a/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteBatch.snap b/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteBatch.snap deleted file mode 100644 index a32dce1a..00000000 --- a/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteBatch.snap +++ /dev/null @@ -1 +0,0 @@ -197273 \ No newline at end of file diff --git a/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteBatchMultipleOutputs.snap b/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteBatchMultipleOutputs.snap deleted file mode 100644 index 9291687b..00000000 --- a/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteBatchMultipleOutputs.snap +++ /dev/null @@ -1 +0,0 @@ -207039 \ No newline at end of file diff --git a/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteBatchMultipleOutputsDifferentTokens.snap b/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteBatchMultipleOutputsDifferentTokens.snap deleted file mode 100644 index 7b4200f0..00000000 --- a/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteBatchMultipleOutputsDifferentTokens.snap +++ /dev/null @@ -1 +0,0 @@ -260710 \ No newline at end of file diff --git a/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteBatchNativeOutput.snap b/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteBatchNativeOutput.snap deleted file mode 100644 index 340733ce..00000000 --- a/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteBatchNativeOutput.snap +++ /dev/null @@ -1 +0,0 @@ -190835 \ No newline at end of file diff --git a/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteSingle.snap b/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteSingle.snap deleted file mode 100644 index 2f1f2ead..00000000 --- a/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteSingle.snap +++ /dev/null @@ -1 +0,0 @@ -148401 \ No newline at end of file diff --git a/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteSingleNativeOutput.snap b/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteSingleNativeOutput.snap deleted file mode 100644 index 270a81d9..00000000 --- a/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteSingleNativeOutput.snap +++ /dev/null @@ -1 +0,0 @@ -133986 \ No newline at end of file diff --git a/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteSingleValidation.snap b/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteSingleValidation.snap deleted file mode 100644 index 433adecc..00000000 --- a/.forge-snapshots/Base-ExclusiveDutchOrder-ExecuteSingleValidation.snap +++ /dev/null @@ -1 +0,0 @@ -157716 \ No newline at end of file diff --git a/.forge-snapshots/Base-LimitOrderReactor-BaseExecuteSingleWithFee.snap b/.forge-snapshots/Base-LimitOrderReactor-BaseExecuteSingleWithFee.snap deleted file mode 100644 index 98a9bac8..00000000 --- a/.forge-snapshots/Base-LimitOrderReactor-BaseExecuteSingleWithFee.snap +++ /dev/null @@ -1 +0,0 @@ -178116 \ No newline at end of file diff --git a/.forge-snapshots/Base-LimitOrderReactor-ExecuteBatch.snap b/.forge-snapshots/Base-LimitOrderReactor-ExecuteBatch.snap deleted file mode 100644 index c470e6ed..00000000 --- a/.forge-snapshots/Base-LimitOrderReactor-ExecuteBatch.snap +++ /dev/null @@ -1 +0,0 @@ -189056 \ No newline at end of file diff --git a/.forge-snapshots/Base-LimitOrderReactor-ExecuteBatchMultipleOutputs.snap b/.forge-snapshots/Base-LimitOrderReactor-ExecuteBatchMultipleOutputs.snap deleted file mode 100644 index f49195f0..00000000 --- a/.forge-snapshots/Base-LimitOrderReactor-ExecuteBatchMultipleOutputs.snap +++ /dev/null @@ -1 +0,0 @@ -197889 \ No newline at end of file diff --git a/.forge-snapshots/Base-LimitOrderReactor-ExecuteBatchMultipleOutputsDifferentTokens.snap b/.forge-snapshots/Base-LimitOrderReactor-ExecuteBatchMultipleOutputsDifferentTokens.snap deleted file mode 100644 index 757ce6f7..00000000 --- a/.forge-snapshots/Base-LimitOrderReactor-ExecuteBatchMultipleOutputsDifferentTokens.snap +++ /dev/null @@ -1 +0,0 @@ -250617 \ No newline at end of file diff --git a/.forge-snapshots/Base-LimitOrderReactor-ExecuteBatchNativeOutput.snap b/.forge-snapshots/Base-LimitOrderReactor-ExecuteBatchNativeOutput.snap deleted file mode 100644 index f6644d41..00000000 --- a/.forge-snapshots/Base-LimitOrderReactor-ExecuteBatchNativeOutput.snap +++ /dev/null @@ -1 +0,0 @@ -182618 \ No newline at end of file diff --git a/.forge-snapshots/Base-LimitOrderReactor-ExecuteSingle.snap b/.forge-snapshots/Base-LimitOrderReactor-ExecuteSingle.snap deleted file mode 100644 index f2fd2a74..00000000 --- a/.forge-snapshots/Base-LimitOrderReactor-ExecuteSingle.snap +++ /dev/null @@ -1 +0,0 @@ -144333 \ No newline at end of file diff --git a/.forge-snapshots/Base-LimitOrderReactor-ExecuteSingleNativeOutput.snap b/.forge-snapshots/Base-LimitOrderReactor-ExecuteSingleNativeOutput.snap deleted file mode 100644 index 70574434..00000000 --- a/.forge-snapshots/Base-LimitOrderReactor-ExecuteSingleNativeOutput.snap +++ /dev/null @@ -1 +0,0 @@ -129913 \ No newline at end of file diff --git a/.forge-snapshots/Base-LimitOrderReactor-ExecuteSingleValidation.snap b/.forge-snapshots/Base-LimitOrderReactor-ExecuteSingleValidation.snap deleted file mode 100644 index ff76e7f8..00000000 --- a/.forge-snapshots/Base-LimitOrderReactor-ExecuteSingleValidation.snap +++ /dev/null @@ -1 +0,0 @@ -153643 \ No newline at end of file diff --git a/.forge-snapshots/DirectFillerFillMacroSingleOrder.snap b/.forge-snapshots/DirectFillerFillMacroSingleOrder.snap deleted file mode 100644 index 788e6ee9..00000000 --- a/.forge-snapshots/DirectFillerFillMacroSingleOrder.snap +++ /dev/null @@ -1 +0,0 @@ -136213 \ No newline at end of file diff --git a/.forge-snapshots/DirectFillerFillMacroSingleOrderWithFee.snap b/.forge-snapshots/DirectFillerFillMacroSingleOrderWithFee.snap deleted file mode 100644 index a3be623b..00000000 --- a/.forge-snapshots/DirectFillerFillMacroSingleOrderWithFee.snap +++ /dev/null @@ -1 +0,0 @@ -175064 \ No newline at end of file diff --git a/.forge-snapshots/DirectFillerFillMacroTestEth1Output.snap b/.forge-snapshots/DirectFillerFillMacroTestEth1Output.snap deleted file mode 100644 index 1ae0df83..00000000 --- a/.forge-snapshots/DirectFillerFillMacroTestEth1Output.snap +++ /dev/null @@ -1 +0,0 @@ -147399 \ No newline at end of file diff --git a/.forge-snapshots/DirectFillerFillMacroTestEth2Outputs.snap b/.forge-snapshots/DirectFillerFillMacroTestEth2Outputs.snap deleted file mode 100644 index ef0b44cc..00000000 --- a/.forge-snapshots/DirectFillerFillMacroTestEth2Outputs.snap +++ /dev/null @@ -1 +0,0 @@ -170622 \ No newline at end of file diff --git a/.forge-snapshots/DirectFillerFillMacroThreeOrdersWithFees.snap b/.forge-snapshots/DirectFillerFillMacroThreeOrdersWithFees.snap deleted file mode 100644 index f70c13b3..00000000 --- a/.forge-snapshots/DirectFillerFillMacroThreeOrdersWithFees.snap +++ /dev/null @@ -1 +0,0 @@ -435187 \ No newline at end of file diff --git a/.forge-snapshots/DirectFillerFillMacroTwoOrders.snap b/.forge-snapshots/DirectFillerFillMacroTwoOrders.snap deleted file mode 100644 index e757a1e3..00000000 --- a/.forge-snapshots/DirectFillerFillMacroTwoOrders.snap +++ /dev/null @@ -1 +0,0 @@ -255972 \ No newline at end of file diff --git a/.forge-snapshots/EthOutputTest3OrdersWithEthAndERC20Outputs.snap b/.forge-snapshots/EthOutputTest3OrdersWithEthAndERC20Outputs.snap deleted file mode 100644 index 065c5f54..00000000 --- a/.forge-snapshots/EthOutputTest3OrdersWithEthAndERC20Outputs.snap +++ /dev/null @@ -1 +0,0 @@ -363514 \ No newline at end of file diff --git a/.forge-snapshots/EthOutputTestEthOutput.snap b/.forge-snapshots/EthOutputTestEthOutput.snap deleted file mode 100644 index 7aa60b92..00000000 --- a/.forge-snapshots/EthOutputTestEthOutput.snap +++ /dev/null @@ -1 +0,0 @@ -156241 \ No newline at end of file diff --git a/.forge-snapshots/ProtocolFeesGasComparisonTest-InterfaceAndProtocolFee.snap b/.forge-snapshots/ProtocolFeesGasComparisonTest-InterfaceAndProtocolFee.snap deleted file mode 100644 index e88d7024..00000000 --- a/.forge-snapshots/ProtocolFeesGasComparisonTest-InterfaceAndProtocolFee.snap +++ /dev/null @@ -1 +0,0 @@ -176915 \ No newline at end of file diff --git a/.forge-snapshots/ProtocolFeesGasComparisonTest-InterfaceAndProtocolFeeEthOutput.snap b/.forge-snapshots/ProtocolFeesGasComparisonTest-InterfaceAndProtocolFeeEthOutput.snap deleted file mode 100644 index 857c8ba9..00000000 --- a/.forge-snapshots/ProtocolFeesGasComparisonTest-InterfaceAndProtocolFeeEthOutput.snap +++ /dev/null @@ -1 +0,0 @@ -162961 \ No newline at end of file diff --git a/.forge-snapshots/ProtocolFeesGasComparisonTest-InterfaceFee.snap b/.forge-snapshots/ProtocolFeesGasComparisonTest-InterfaceFee.snap deleted file mode 100644 index a07a3f15..00000000 --- a/.forge-snapshots/ProtocolFeesGasComparisonTest-InterfaceFee.snap +++ /dev/null @@ -1 +0,0 @@ -166046 \ No newline at end of file diff --git a/.forge-snapshots/ProtocolFeesGasComparisonTest-InterfaceFeeEthOutput.snap b/.forge-snapshots/ProtocolFeesGasComparisonTest-InterfaceFeeEthOutput.snap deleted file mode 100644 index 9b951ac5..00000000 --- a/.forge-snapshots/ProtocolFeesGasComparisonTest-InterfaceFeeEthOutput.snap +++ /dev/null @@ -1 +0,0 @@ -146909 \ No newline at end of file diff --git a/.forge-snapshots/ProtocolFeesGasComparisonTest-NoFees.snap b/.forge-snapshots/ProtocolFeesGasComparisonTest-NoFees.snap deleted file mode 100644 index b769768a..00000000 --- a/.forge-snapshots/ProtocolFeesGasComparisonTest-NoFees.snap +++ /dev/null @@ -1 +0,0 @@ -149267 \ No newline at end of file diff --git a/.forge-snapshots/ProtocolFeesGasComparisonTest-NoFeesEthOutput.snap b/.forge-snapshots/ProtocolFeesGasComparisonTest-NoFeesEthOutput.snap deleted file mode 100644 index d37ab675..00000000 --- a/.forge-snapshots/ProtocolFeesGasComparisonTest-NoFeesEthOutput.snap +++ /dev/null @@ -1 +0,0 @@ -124947 \ No newline at end of file diff --git a/.forge-snapshots/SwapRouter02ExecutorExecute.snap b/.forge-snapshots/SwapRouter02ExecutorExecute.snap deleted file mode 100644 index 33bb7d57..00000000 --- a/.forge-snapshots/SwapRouter02ExecutorExecute.snap +++ /dev/null @@ -1 +0,0 @@ -262973 \ No newline at end of file diff --git a/.forge-snapshots/SwapRouter02ExecutorExecuteAlreadyApproved.snap b/.forge-snapshots/SwapRouter02ExecutorExecuteAlreadyApproved.snap deleted file mode 100644 index f78360f3..00000000 --- a/.forge-snapshots/SwapRouter02ExecutorExecuteAlreadyApproved.snap +++ /dev/null @@ -1 +0,0 @@ -118092 \ No newline at end of file diff --git a/.forge-snapshots/SwapRouter02IntegrationTest-testSwapWethToDaiViaV3-AlreadyApproved.snap b/.forge-snapshots/SwapRouter02IntegrationTest-testSwapWethToDaiViaV3-AlreadyApproved.snap deleted file mode 100644 index f1451200..00000000 --- a/.forge-snapshots/SwapRouter02IntegrationTest-testSwapWethToDaiViaV3-AlreadyApproved.snap +++ /dev/null @@ -1 +0,0 @@ -122425 \ No newline at end of file diff --git a/.forge-snapshots/SwapRouter02IntegrationTest-testSwapWethToDaiViaV3.snap b/.forge-snapshots/SwapRouter02IntegrationTest-testSwapWethToDaiViaV3.snap deleted file mode 100644 index 8d5a8198..00000000 --- a/.forge-snapshots/SwapRouter02IntegrationTest-testSwapWethToDaiViaV3.snap +++ /dev/null @@ -1 +0,0 @@ -336593 \ No newline at end of file diff --git a/.forge-snapshots/testExclusiveFillerSucceeds.snap b/.forge-snapshots/testExclusiveFillerSucceeds.snap deleted file mode 100644 index 9a90a3d8..00000000 --- a/.forge-snapshots/testExclusiveFillerSucceeds.snap +++ /dev/null @@ -1 +0,0 @@ -174066 \ No newline at end of file diff --git a/src/reactors/RelayOrderReactor.sol b/src/reactors/RelayOrderReactor.sol index 50283ad6..0460cf29 100644 --- a/src/reactors/RelayOrderReactor.sol +++ b/src/reactors/RelayOrderReactor.sol @@ -83,7 +83,7 @@ contract RelayOrderReactor is ReactorEvents, ReactorErrors, ReentrancyGuard, IRe (bool success,) = universalRouter.call(actionData); if (!success) revert CallFailed(); } - // Give Permit2 max approval on the reactor + // Max approve an ERC20 to UniversalRouter from the reactor using Permit2 else if (actionType == ActionType.ApprovePermit2) { (address token) = abi.decode(actionData, (address)); if (token == address(0)) revert InvalidToken();