From bacfc9d07c730def98dd7654d15a7d9d56d67943 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Fri, 20 Aug 2021 03:53:48 +0530 Subject: [PATCH] Reverted commit --- .../mainnet/connectors/uniswapV3/main.sol | 25 ++----------------- hardhat.config.js | 2 +- 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/contracts/mainnet/connectors/uniswapV3/main.sol b/contracts/mainnet/connectors/uniswapV3/main.sol index a59c739e..af3db817 100644 --- a/contracts/mainnet/connectors/uniswapV3/main.sol +++ b/contracts/mainnet/connectors/uniswapV3/main.sol @@ -14,19 +14,12 @@ abstract contract UniswapResolver is Helpers, Events { /** * @dev Mint New Position * @notice Mint New NFT LP Position - * @param tokenA parameter for mint + * @param params parameter for mint * @param getIds ID to retrieve amtA * @param setId ID stores the amount of LP token */ function mint( - address tokenA, - address tokenB, - uint24 fee, - int24 tickLower, - int24 tickUpper, - uint256 amtA, - uint256 amtB, - uint256 slippage, + MintParams memory params, uint256[] calldata getIds, uint256 setId ) @@ -34,20 +27,6 @@ abstract contract UniswapResolver is Helpers, Events { payable returns (string memory _eventName, bytes memory _eventParam) { - - MintParams memory params; - { - params = MintParams( - tokenA, - tokenB, - fee, - tickLower, - tickUpper, - amtA, - amtB, - slippage - ); - } params.amtA = getUint(getIds[0], params.amtA); params.amtB = getUint(getIds[1], params.amtB); diff --git a/hardhat.config.js b/hardhat.config.js index 55084290..3320c333 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -26,7 +26,7 @@ module.exports = { version: "0.7.6", settings: { optimizer: { - enabled: true, + enabled: false, runs: 200, }, },