mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
29 lines
668 B
Solidity
29 lines
668 B
Solidity
//SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.7.0;
|
|
|
|
import { TokenInterface } from "../../common/interfaces.sol";
|
|
|
|
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;
|
|
uint256 _sellAmt;
|
|
uint256 _buyAmt;
|
|
uint256 unitAmt;
|
|
bytes callData;
|
|
}
|