mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
minor fixes & updates
This commit is contained in:
parent
4fadaa0515
commit
07a3090294
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user