aave-protocol-v2/contracts/interfaces/IExchangeAdapter.sol

24 lines
512 B
Solidity
Raw Permalink Normal View History

// SPDX-License-Identifier: agpl-3.0
2020-11-20 10:45:20 +00:00
pragma solidity 0.6.12;
2020-10-15 13:41:56 +00:00
import {IERC20} from '../dependencies/openzeppelin/contracts/IERC20.sol';
interface IExchangeAdapter {
2020-07-13 08:54:08 +00:00
event Exchange(
address indexed from,
address indexed to,
address indexed platform,
uint256 fromAmount,
uint256 toAmount
);
function approveExchange(IERC20[] calldata tokens) external;
2020-07-13 08:54:08 +00:00
function exchange(
address from,
address to,
uint256 amount,
uint256 maxSlippage
2020-07-13 08:54:08 +00:00
) external returns (uint256);
2020-06-02 14:16:22 +00:00
}