diff --git a/.forge-snapshots/StableSwapTest#test_stableSwap_ExactInput0For1.snap b/.forge-snapshots/StableSwapTest#test_stableSwap_ExactInput0For1.snap index 0386c0a..612ad57 100644 --- a/.forge-snapshots/StableSwapTest#test_stableSwap_ExactInput0For1.snap +++ b/.forge-snapshots/StableSwapTest#test_stableSwap_ExactInput0For1.snap @@ -1 +1 @@ -193198 \ No newline at end of file +193207 \ No newline at end of file diff --git a/.forge-snapshots/StableSwapTest#test_stableSwap_ExactInput1For0.snap b/.forge-snapshots/StableSwapTest#test_stableSwap_ExactInput1For0.snap index c823d60..eae79b6 100644 --- a/.forge-snapshots/StableSwapTest#test_stableSwap_ExactInput1For0.snap +++ b/.forge-snapshots/StableSwapTest#test_stableSwap_ExactInput1For0.snap @@ -1 +1 @@ -192654 \ No newline at end of file +192663 \ No newline at end of file diff --git a/.forge-snapshots/UniversalRouterBytecodeSize.snap b/.forge-snapshots/UniversalRouterBytecodeSize.snap index 484ebbf..452efc2 100644 --- a/.forge-snapshots/UniversalRouterBytecodeSize.snap +++ b/.forge-snapshots/UniversalRouterBytecodeSize.snap @@ -1 +1 @@ -24160 \ No newline at end of file +24220 \ No newline at end of file diff --git a/.forge-snapshots/V3ToV4MigrationNativeTest#test_v4CLPositionmanager_Mint_Native.snap b/.forge-snapshots/V3ToV4MigrationNativeTest#test_v4CLPositionmanager_Mint_Native.snap index 8a3f431..4ec305b 100644 --- a/.forge-snapshots/V3ToV4MigrationNativeTest#test_v4CLPositionmanager_Mint_Native.snap +++ b/.forge-snapshots/V3ToV4MigrationNativeTest#test_v4CLPositionmanager_Mint_Native.snap @@ -1 +1 @@ -559373 \ No newline at end of file +559388 \ No newline at end of file diff --git a/.forge-snapshots/V3ToV4MigrationTest#test_v4BinPositionmanager_BinAddLiquidity.snap b/.forge-snapshots/V3ToV4MigrationTest#test_v4BinPositionmanager_BinAddLiquidity.snap index ad6e1a7..00914cc 100644 --- a/.forge-snapshots/V3ToV4MigrationTest#test_v4BinPositionmanager_BinAddLiquidity.snap +++ b/.forge-snapshots/V3ToV4MigrationTest#test_v4BinPositionmanager_BinAddLiquidity.snap @@ -1 +1 @@ -594191 \ No newline at end of file +594207 \ No newline at end of file diff --git a/.forge-snapshots/V3ToV4MigrationTest#test_v4BinPositionmanager_BinAddLiquidity_Native.snap b/.forge-snapshots/V3ToV4MigrationTest#test_v4BinPositionmanager_BinAddLiquidity_Native.snap index 23aaec4..70693ec 100644 --- a/.forge-snapshots/V3ToV4MigrationTest#test_v4BinPositionmanager_BinAddLiquidity_Native.snap +++ b/.forge-snapshots/V3ToV4MigrationTest#test_v4BinPositionmanager_BinAddLiquidity_Native.snap @@ -1 +1 @@ -570028 \ No newline at end of file +570044 \ No newline at end of file diff --git a/.forge-snapshots/V3ToV4MigrationTest#test_v4CLPositionmanager_Mint.snap b/.forge-snapshots/V3ToV4MigrationTest#test_v4CLPositionmanager_Mint.snap index 4613764..9fceaba 100644 --- a/.forge-snapshots/V3ToV4MigrationTest#test_v4CLPositionmanager_Mint.snap +++ b/.forge-snapshots/V3ToV4MigrationTest#test_v4CLPositionmanager_Mint.snap @@ -1 +1 @@ -583544 \ No newline at end of file +583559 \ No newline at end of file diff --git a/src/base/Dispatcher.sol b/src/base/Dispatcher.sol index 5f7a035..194509b 100755 --- a/src/base/Dispatcher.sol +++ b/src/base/Dispatcher.sol @@ -161,10 +161,8 @@ abstract contract Dispatcher is } Payments.payPortion(token, map(recipient), bips); return (success, output); - } else { - // placeholder area for command 0x07 - revert InvalidCommandType(command); } + // placeholder area for command 0x07 } else { // 0x08 <= command < 0x10 if (command == Commands.V2_SWAP_EXACT_IN) { @@ -256,10 +254,8 @@ abstract contract Dispatcher is success = (ERC20(token).balanceOf(owner) >= minBalance); if (!success) output = abi.encodePacked(BalanceTooLow.selector); return (success, output); - } else { - // placeholder area for command 0x0f - revert InvalidCommandType(command); } + // placeholder area for command 0x0f } } else { // 0x10 <= command < 0x21 @@ -314,10 +310,8 @@ abstract contract Dispatcher is // do not permit or approve this contract over a v4 position or someone could use this command to decrease, burn, or transfer your position (success, output) = address(V4_BIN_POSITION_MANAGER).call{value: address(this).balance}(inputs); return (success, output); - } else { - // placeholder area for commands 0x15-0x20 - revert InvalidCommandType(command); } + // placeholder area for commands 0x15-0x20 } } else { // 0x21 <= command @@ -364,11 +358,10 @@ abstract contract Dispatcher is uint256 amountIn = stableSwapExactOutputAmountIn(amountOut, amountInMax, path, flag); stableSwapExactOutput(map(recipient), amountIn, amountOut, path, flag, payer); return (success, output); - } else { - // placeholder area for commands 0x24-0x3f - revert InvalidCommandType(command); } + // placeholder area for commands 0x24-0x3f } + revert InvalidCommandType(command); } /// @notice Calculates the recipient address for a command