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 {SqrtPriceMath} from "./libraries/SqrtPriceMath.sol";
import "./libraries/TransferHelper.sol"; import "./libraries/TransferHelper.sol";
abstract contract Helpers is ISwapRouter { contract Helpers is ISwapRouter {
ISwapRouter router = ISwapRouter constant public router =
ISwapRouter(0xE592427A0AEce92De3Edee1F18E0157C05861564); ISwapRouter(0xE592427A0AEce92De3Edee1F18E0157C05861564);
UniswapV3Pool state = UniswapV3Pool constant public state =
UniswapV3Pool(0xCEda10b4d3bdE429DdA3A6daB87b38360313CBdB); UniswapV3Pool(0xCEda10b4d3bdE429DdA3A6daB87b38360313CBdB);
function getPriceLimit(uint256 amountIn, bool zeroForOne) function getPriceLimit(uint256 amountIn, bool zeroForOne)

View File

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