fix: remove extra _receiver and redundant asserts

This commit is contained in:
royvardhan
2025-02-11 22:58:34 +05:30
parent a555683257
commit ff3209b1c8
2 changed files with 2 additions and 7 deletions

View File

@@ -75,9 +75,7 @@ contract UniswapV4Executor is IExecutor, V4Router {
uint8 action = uint8(bytes1(actions[0]));
// Get receiver from params[2] for all cases
(, address _receiver,) =
abi.decode(params[2], (Currency, address, uint256));
receiver = _receiver;
(, receiver,) = abi.decode(params[2], (Currency, address, uint256));
if (action == uint8(Actions.SWAP_EXACT_IN_SINGLE)) {
IV4Router.ExactInputSingleParams memory swapParams =