dsa-connectors/contracts/arbitrum/connectors/uniswap-sell-beta/main.sol
pradyuman-verma 4fadaa0515
minor fix
2021-11-19 19:52:34 +05:30

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";
}