dsa-connectors/contracts/arbitrum/connectors/uniswap-sell-beta/main.sol
pradyuman-verma 86ea7dd608
update
2021-11-20 03:25:52 +05:30

38 lines
895 B
Solidity

pragma solidity ^0.7.6;
pragma abicoder v2;
import "./helpers.sol";
contract uniswapSellBeta is Helpers {
function sell(
address tokenIn,
address tokenOut,
uint24 fee,
uint256 amountIn,
uint256 amountOutMinimum,
bool zeroForOne
) public payable returns (uint256 amountOut) {
(address tokenA, address tokenB) = SwapTokens(
tokenIn,
tokenOut,
zeroForOne
);
approveTransfer(tokenA, amountIn);
amountOut = swapSingleInput(
getParams(
tokenA,
tokenB,
msg.sender,
fee,
amountIn,
amountOutMinimum,
zeroForOne
)
);
}
}
contract UniswapSellBetaArbitrum is uniswapSellBeta {
string public constant name = "UniswapSellBeta";
}