Removed _exactInputSingle

This commit is contained in:
Thrilok kumar 2021-08-19 01:11:12 +05:30 committed by GitHub
parent f2a6808861
commit da4c7ff509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,29 +204,6 @@ abstract contract Helpers is DSMath, Basic {
(amount0, amount1) = nftManager.collect(params);
}
/**
* @dev exactInputSingle function which interact with Uniswap v3
*/
function _exactInputSingle(
address _tokenIn,
address _tokenOut,
uint24 _fee,
uint256 _amountIn
) internal returns (uint256 amountOut) {
TransferHelper.safeApprove(_tokenIn, address(swapRouter), _amountIn);
ISwapRouter.ExactInputSingleParams memory params = ISwapRouter
.ExactInputSingleParams(
_tokenIn,
_tokenOut,
_fee,
address(this),
block.timestamp,
_amountIn,
0,
0
);
amountOut = swapRouter.exactInputSingle(params);
}
/**
* @dev Burn Function