From a1c6607cdc69d0f2178b6a0b2cf966302263edbe Mon Sep 17 00:00:00 2001 From: pradyuman-verma Date: Fri, 19 Nov 2021 02:08:57 +0530 Subject: [PATCH] fix --- contracts/sample/uniswap-sample.sol | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/contracts/sample/uniswap-sample.sol b/contracts/sample/uniswap-sample.sol index de3d6219..074dc5ea 100644 --- a/contracts/sample/uniswap-sample.sol +++ b/contracts/sample/uniswap-sample.sol @@ -46,30 +46,6 @@ contract uniswapSample { UniswapV3Pool(0xCEda10b4d3bdE429DdA3A6daB87b38360313CBdB); uint24 public constant poolFee = 3000; - function computeAddress(address factory_, PoolKey memory key_) - internal - pure - returns (address pool_) - { - require(key_.token0 < key_.token1); - pool_ = address( - uint160( - uint256( - keccak256( - abi.encodePacked( - hex"ff", - factory_, - keccak256( - abi.encode(key_.token0, key_.token1, key_.fee) - ), - POOL_INIT_CODE_HASH - ) - ) - ) - ) - ); - } - function getPriceLimit( ISwapRouter.ExactInputSingleParams params, bool zeroForOne