Converted struct to normal variables

This commit is contained in:
Thrilok Kumar 2021-08-20 03:51:25 +05:30
parent 099fb6d468
commit f0e9e1d529

View File

@ -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);