mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
23 lines
897 B
Solidity
23 lines
897 B
Solidity
|
// SPDX-License-Identifier: agpl-3.0
|
||
|
pragma solidity ^0.6.8;
|
||
|
|
||
|
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
|
||
|
|
||
|
interface IKyberNetworkProxyInterface {
|
||
|
function maxGasPrice() external view returns(uint);
|
||
|
function getUserCapInWei(address user) external view returns(uint);
|
||
|
function getUserCapInTokenWei(address user, IERC20 token) external view returns(uint);
|
||
|
function enabled() external view returns(bool);
|
||
|
function info(bytes32 id) external view returns(uint);
|
||
|
function getExpectedRate(IERC20 src, IERC20 dest, uint srcQty)
|
||
|
external view returns (uint expectedRate, uint slippageRate);
|
||
|
function tradeWithHint(
|
||
|
IERC20 src,
|
||
|
uint srcAmount,
|
||
|
IERC20 dest,
|
||
|
address destAddress,
|
||
|
uint maxDestAmount,
|
||
|
uint minConversionRate,
|
||
|
address walletId,
|
||
|
bytes calldata hint) external payable returns(uint);
|
||
|
}
|