minor fixes & updates

This commit is contained in:
Samyak Jain 2021-11-19 19:58:35 +05:30
parent 4fadaa0515
commit 07a3090294
2 changed files with 5 additions and 4 deletions

View File

@ -5,11 +5,11 @@ import "./interface.sol";
import {SqrtPriceMath} from "./libraries/SqrtPriceMath.sol";
import "./libraries/TransferHelper.sol";
abstract contract Helpers is ISwapRouter {
ISwapRouter router =
contract Helpers is ISwapRouter {
ISwapRouter constant public router =
ISwapRouter(0xE592427A0AEce92De3Edee1F18E0157C05861564);
UniswapV3Pool state =
UniswapV3Pool constant public state =
UniswapV3Pool(0xCEda10b4d3bdE429DdA3A6daB87b38360313CBdB);
function getPriceLimit(uint256 amountIn, bool zeroForOne)

View File

@ -8,6 +8,7 @@ abstract contract uniswapSellBeta is Helpers {
address tokenIn,
address tokenOut,
uint24 fee,
uint256 amountIn,
uint256 amountOutMinimum,
bool zeroForOne
) public payable returns (uint256 amountOut) {
@ -18,7 +19,7 @@ abstract contract uniswapSellBeta is Helpers {
tokenOut,
msg.sender,
fee,
msg.value,
amountIn,
amountOutMinimum,
zeroForOne
)