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

24 lines
509 B
Solidity
Raw Normal View History

// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
2020-08-20 10:44:51 +00:00
import {IERC20} from '@openzeppelin/contracts/token/ERC20/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
}