mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
32 lines
779 B
Solidity
32 lines
779 B
Solidity
pragma solidity ^0.7.6;
|
|
pragma abicoder v2;
|
|
|
|
import "./helpers.sol";
|
|
|
|
abstract contract uniswapSellBeta is Helpers {
|
|
function sell(
|
|
address tokenIn,
|
|
address tokenOut,
|
|
uint24 fee,
|
|
uint256 amountOutMinimum,
|
|
bool zeroForOne
|
|
) public payable returns (uint256 amountOut) {
|
|
approveTransfer(tokenIn, msg.sender, address(this), msg.value);
|
|
amountOut = swapSingleInput(
|
|
getParams(
|
|
tokenIn,
|
|
tokenOut,
|
|
msg.sender,
|
|
fee,
|
|
msg.value,
|
|
amountOutMinimum,
|
|
zeroForOne
|
|
)
|
|
);
|
|
}
|
|
}
|
|
|
|
contract UniswapSellBetaArbitrum is uniswapSellBeta {
|
|
string public constant name = "UniswapSellBeta";
|
|
}
|