2020-10-28 14:41:31 +00:00
|
|
|
// SPDX-License-Identifier: agpl-3.0
|
|
|
|
pragma solidity ^0.6.8;
|
|
|
|
|
2020-11-02 16:51:54 +00:00
|
|
|
import {ILendingPool} from '../../interfaces/ILendingPool.sol';
|
|
|
|
|
2020-10-28 14:41:31 +00:00
|
|
|
interface IWETHGateway {
|
2020-11-02 16:51:54 +00:00
|
|
|
function depositETH(
|
|
|
|
ILendingPool pool,
|
|
|
|
address onBehalfOf,
|
|
|
|
uint16 referralCode
|
|
|
|
) external payable;
|
2020-10-28 14:41:31 +00:00
|
|
|
|
2020-11-02 16:51:54 +00:00
|
|
|
function withdrawETH(
|
|
|
|
ILendingPool pool,
|
|
|
|
uint256 amount,
|
|
|
|
address onBehalfOf
|
|
|
|
) external;
|
2020-10-28 14:41:31 +00:00
|
|
|
|
|
|
|
function repayETH(
|
2020-11-02 16:51:54 +00:00
|
|
|
ILendingPool pool,
|
2020-10-28 14:41:31 +00:00
|
|
|
uint256 amount,
|
|
|
|
uint256 rateMode,
|
|
|
|
address onBehalfOf
|
|
|
|
) external payable;
|
|
|
|
}
|