From f0e9e1d529f4d255f8eb0882709e6dcfa39dea4e Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Fri, 20 Aug 2021 03:51:25 +0530 Subject: [PATCH] Converted struct to normal variables --- .../mainnet/connectors/uniswapV3/main.sol | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/contracts/mainnet/connectors/uniswapV3/main.sol b/contracts/mainnet/connectors/uniswapV3/main.sol index af3db817..a59c739e 100644 --- a/contracts/mainnet/connectors/uniswapV3/main.sol +++ b/contracts/mainnet/connectors/uniswapV3/main.sol @@ -14,12 +14,19 @@ abstract contract UniswapResolver is Helpers, Events { /** * @dev Mint New Position * @notice Mint New NFT LP Position - * @param params parameter for mint + * @param tokenA parameter for mint * @param getIds ID to retrieve amtA * @param setId ID stores the amount of LP token */ function mint( - MintParams memory params, + address tokenA, + address tokenB, + uint24 fee, + int24 tickLower, + int24 tickUpper, + uint256 amtA, + uint256 amtB, + uint256 slippage, uint256[] calldata getIds, uint256 setId ) @@ -27,6 +34,20 @@ 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);