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

23 lines
897 B
Solidity
Raw Normal View History

// 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);
}