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 {
|
2020-11-02 17:43:50 +00:00
|
|
|
function depositETH(address onBehalfOf, uint16 referralCode) external payable;
|
2020-10-28 14:41:31 +00:00
|
|
|
|
2020-11-02 17:43:50 +00:00
|
|
|
function withdrawETH(uint256 amount, address onBehalfOf) external;
|
2020-10-28 14:41:31 +00:00
|
|
|
|
|
|
|
function repayETH(
|
|
|
|
uint256 amount,
|
|
|
|
uint256 rateMode,
|
|
|
|
address onBehalfOf
|
|
|
|
) external payable;
|
2020-11-06 12:22:03 +00:00
|
|
|
|
|
|
|
function borrowETH(
|
|
|
|
uint256 amount,
|
|
|
|
uint256 interesRateMode,
|
|
|
|
uint16 referralCode
|
|
|
|
) external;
|
2020-10-28 14:41:31 +00:00
|
|
|
}
|