aave-protocol-v2/contracts/misc/interfaces/IWETHGateway.sol

41 lines
775 B
Solidity
Raw Normal View History

2020-10-28 14:41:31 +00:00
// SPDX-License-Identifier: agpl-3.0
2020-11-20 10:45:20 +00:00
pragma solidity 0.6.12;
2020-10-28 14:41:31 +00:00
interface IWETHGateway {
2021-02-22 11:30:26 +00:00
function depositETH(
address lendingPool,
address onBehalfOf,
uint16 referralCode
) external payable;
2020-10-28 14:41:31 +00:00
2021-02-22 11:30:26 +00:00
function withdrawETH(
address lendingPool,
uint256 amount,
address onBehalfOf
) external;
2020-10-28 14:41:31 +00:00
function repayETH(
2021-02-22 11:30:26 +00:00
address lendingPool,
2020-10-28 14:41:31 +00:00
uint256 amount,
uint256 rateMode,
address onBehalfOf
) external payable;
2020-11-06 12:22:03 +00:00
function borrowETH(
2021-02-22 11:30:26 +00:00
address lendingPool,
2020-11-06 12:22:03 +00:00
uint256 amount,
uint256 interesRateMode,
uint16 referralCode
) external;
2021-04-06 13:18:31 +00:00
function withdrawETHWithPermit(
address lendingPool,
uint256 amount,
address to,
uint256 deadline,
uint8 permitV,
bytes32 permitR,
bytes32 permitS
) external;
2020-10-28 14:41:31 +00:00
}