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

31 lines
583 B
Solidity
Raw Permalink 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;
2020-10-28 14:41:31 +00:00
}