mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
24 lines
513 B
Solidity
24 lines
513 B
Solidity
// SPDX-License-Identifier: agpl-3.0
|
|
pragma solidity ^0.6.12;
|
|
|
|
import {IERC20} from '../dependencies/openzeppelin/contracts/IERC20.sol';
|
|
|
|
interface IExchangeAdapter {
|
|
event Exchange(
|
|
address indexed from,
|
|
address indexed to,
|
|
address indexed platform,
|
|
uint256 fromAmount,
|
|
uint256 toAmount
|
|
);
|
|
|
|
function approveExchange(IERC20[] calldata tokens) external;
|
|
|
|
function exchange(
|
|
address from,
|
|
address to,
|
|
uint256 amount,
|
|
uint256 maxSlippage
|
|
) external returns (uint256);
|
|
}
|