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 {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)
|
||||||
|
|
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user