dsa-connectors/contracts/arbitrum/connectors/1inch/1inch-v3/interface.sol

31 lines
757 B
Solidity
Raw Normal View History

2022-03-22 14:47:37 +00:00
//SPDX-License-Identifier: MIT
2021-09-22 18:43:16 +00:00
pragma solidity ^0.7.0;
2021-12-24 12:48:06 +00:00
import { TokenInterface } from "../../../common/interfaces.sol";
2021-09-22 18:43:16 +00:00
interface OneInchInterace {
function swap(
TokenInterface fromToken,
TokenInterface toToken,
uint256 fromTokenAmount,
uint256 minReturnAmount,
uint256 guaranteedAmount,
address payable referrer,
address[] calldata callAddresses,
bytes calldata callDataConcat,
uint256[] calldata starts,
uint256[] calldata gasLimitsAndValues
)
external
payable
returns (uint256 returnAmount);
}
struct OneInchData {
TokenInterface sellToken;
TokenInterface buyToken;
uint _sellAmt;
uint _buyAmt;
uint unitAmt;
bytes callData;
}